Cannot get scripts to run
I have a Windoze server I that want to automatically get a file from a linux ssh server every night.
I have installed WinSCP3 on my windoze server and have it working fine with public Key & Pageant to my unix ssh server using the GUI interface.
Next I put this in a script named script.txt:
--------------
option batch on
option confirm off
open mrtest@10.1.1.10
option transfer ascii
get /home/mrtest/xfer/junk c:\trans\junk
close
exit
---------------
I try running the script from command line like this:
WinSCP3 /console /script=script.txt
But it brings up the GUI and does not do the file transfer.
How do I make this work each night in automated fashion?
I have installed WinSCP3 on my windoze server and have it working fine with public Key & Pageant to my unix ssh server using the GUI interface.
Next I put this in a script named script.txt:
--------------
option batch on
option confirm off
open mrtest@10.1.1.10
option transfer ascii
get /home/mrtest/xfer/junk c:\trans\junk
close
exit
---------------
I try running the script from command line like this:
WinSCP3 /console /script=script.txt
But it brings up the GUI and does not do the file transfer.
How do I make this work each night in automated fashion?