Script not running

Advertisement

supahoopsa
Joined:
Posts:
2
Location:
Camberley, Surrey, UK

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: [img] https://ibb.co/bKZQ3c [/img]
First profile working using Login: [img] https://ibb.co/ecG2Gx [/img]
---------------------------------------------------------------------------
Profile2
Second profile not working in script: [img] https://ibb.co/ghKm9H [/img]
Second profile working using Login: [img] https://ibb.co/g0nRbx [/img]

Any suggestions as to what I might be missing?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,286
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum