Re: script fails with return code 0
This issue has been added to the tracker:
https://winscp.net/tracker/749
https://winscp.net/tracker/749
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
call if cmd1 ; then cmd2 ; fi
winscp> option echo off
echo off
winscp> option bat abort
batch abort
winscp> option confirm off
confirm off
winscp> option transfer automatic
transfer automatic
winscp> open -timeout=1 root:FM@192.168.101.2
Searching for host...
Connecting to host...
Authenticating...
Using username \"root\".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] root@192.168.101.2
winscp> call echo "asdf" >&2
Searching for host...
Connecting to host...
Authenticating...
Using username \"root\".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
asdf
Command 'echo "asdf" >&2'
failed with return code 0 and error message
asdf.