Script open error

Advertisement

steallport
Joined:
Posts:
2

Script open error

Help - I can't see what is different from other implementations I've done.

I have a script:

option batch on
option confirm off
open mysession 
cd /var/lib/mysql/unloads
lcd e:\robocopy\mysession-backup\Backupv2 
synchronize local
close
exit    

I run the command

"C:\Program Files\WinSCP\WinSCP.exe" /console /script= E:\robocopy\mysession-backup\backup2.txt

The "DOS" window opens pauses on Searching for host... for a couple of seconds and then states Host does not exist

The "DOS" box is still open and if I type: open mysession it connects

mysession is configured with the IP as the host, port is 22, username and password are saved and the protcol is is sftp with scp fall back

Anybody got any suggestions why it doesn't connect automatically?

Upgraded from 4.0.x to 4.1.9 on a windows 2003 server

Thanks

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Script open error

steallport wrote:

"C:\Program Files\WinSCP\WinSCP.exe" /console /script= E:\robocopy\mysession-backup\backup2.txt
Remove the space after "/script=".
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum