Synchronisation script - gethostbyname: unknown error
I am trying to write a very simple script to synchronise PCs (one Vista and the other XP) with a Linux file server.
I belive that the batch file works. It contains one line:
winscp.com /script= C:\Users\John\Documents\scripts\winscpsync.txt
(Vista version)
The file winscpsync.txt contains:
option batch on
option confirm off
open scp://john:password@192.168.254.99:202
synchronize both C:\Users\John\Documents\ /home/john/laptop/
close
exit
When I run it, it opens a DOS window:
C:\Users\John\Documents\scripts>winscp.com /script= C:\Users\John\Documents\scripts\winscpsync.txt
Searching for host...
gethostbyname: unknown error
I've run the command shell manually; copied and pasted the commands and they work fine.
Any suggestions anyone please?
PS: I've tried a similar version on XP and on that, the DOS window pops up showing the .com file command and then disappears. I had to take a screenshot to see what was in it.
PPS: I presume that logging the process would help, but I couldn't see how to achieve this in a script.
I belive that the batch file works. It contains one line:
winscp.com /script= C:\Users\John\Documents\scripts\winscpsync.txt
(Vista version)
The file winscpsync.txt contains:
option batch on
option confirm off
open scp://john:password@192.168.254.99:202
synchronize both C:\Users\John\Documents\ /home/john/laptop/
close
exit
When I run it, it opens a DOS window:
C:\Users\John\Documents\scripts>winscp.com /script= C:\Users\John\Documents\scripts\winscpsync.txt
Searching for host...
gethostbyname: unknown error
I've run the command shell manually; copied and pasted the commands and they work fine.
Any suggestions anyone please?
PS: I've tried a similar version on XP and on that, the DOS window pops up showing the .com file command and then disappears. I had to take a screenshot to see what was in it.
PPS: I presume that logging the process would help, but I couldn't see how to achieve this in a script.