Topic "Script Failed of WinSCP"

Author Message

Have script with unknown reason of error. Run winscp commands from windows .bat file.

here is the script code from windows .bat file

winscp.exe /console /log=winscp.log /command ^
"open %server_access% -timeout=720" ^
"call echo 'Creating DRUSH backup...'" ^
"cd %drupal_base_path%" ^
"call drush @%project% bb" ^
"call echo 'Done'" ^
"call echo 'Downloading dump file...'" ^
"cd %server_dump_file_path%" ^
"get %dump_file_name_zip% %backup_file_path_zip%" ^
"call echo 'Done'" ^
"call echo 'Removing dump files...'" ^
"cd %server_dump_file_path%" ^
"call rm %dump_file_name_zip%" ^
"call rm" ^
"call echo 'Done'" ^
"close" ^

script failed after command "call drush @%project% bb"

Using last WinSCP 5.7.4 on windows 7. Session log file is attached.

All was OK on WinSCP 4.2.9 !
winscp.log (17.69 KB) [Download]

Description: full log

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
As documented:

It is an error, if the command has any error output, but no standard output. To circumvent that redirect the error output to nul (2>/dev/null) or to the standard output (2>&1).


You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License