Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Script not running

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


Though in general, we do not recommend relying on stored sites in scripting.
supahoopsa

Script not running

Working option using Profile1 - eteach_uk_limited@jobvacancies.ftp.businesslink.gov.uk
# Automatically abort script on errors

option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
open sftp://eteach_uk_limited@jobvacancies.ftp.businesslink.gov.uk


NOT Working option using Profile 2 - sftp://eteach_uk_limited@findajob.dwp.gov.uk
# Automatically abort script on errors

option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
open sftp://eteach_uk_limited@findajob.dwp.gov.uk


When I open WinSCP, I can login using either profile, but when I try running WinSCP using WinSCP.exe /command /script=jcp-ftp.txt only the first profile works.

Profile1
First profile working in script: https://ibb.co/fdBTvc7
First profile working using Login: https://ibb.co/ngy3DjB
---------------------------------------------------------------------------
Profile2
Second profile not working in script: https://ibb.co/Y0qr7nF
Second profile working using Login: https://ibb.co/P48HvzZ

Any suggestions as to what I might be missing?