PSFTP Batch Not Working

  • Follow


I am running psftp: Release 0.60

-----------------------------------

The command line I am using is:

C:\putty\PSFTP.EXE  -l user -pw password x.x.x.x -b "d:\ftp files
\Files_to_Upload.txt"

-----------------------------------

The content of the file Files_to_Upload.txt is:

cd /
lcd d:\captures
ls
put D:\Captures\test.txt

-----------------------------------

The output when the command is run is:

C:\putty\PSFTP.EXE -bc -v -l user -pw password x.x.x.x -b "d:\ftp files
\Files_to_Upload.txt"
Looking up host "x.x.x.x"
Connecting to x.x.x.x port 22
Server version: SSH-2.0-Serv-U_9.1.0.2
We claim version: SSH-2.0-PuTTY_Release_0.60
Using SSH protocol version 2
Using Diffie-Hellman with standard group "group14"
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 1024 e4:dd:11:2e:82:34:ab:62:59:1c:c8:62:1d:4b:48:99
Initialised AES-256 CBC client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 CBC server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "user".
Sent password
Access granted
Opened channel for session
Started a shell/command
Connected to x.x.x.x
Remote working directory is /
psftp> cd /
Remote directory is now /
psftp> quit
Sent EOF message
Disconnected: All channels closed

-----------------------------------

The file never gets uploaded nor do I see the output of the ls
command.

When I paste the commands manually to the command window they execute
as desired.

I have been going in circles for a few days, any guidance will be
GREATLY appreciated.

-John
0
Reply xq1xq1xq1 (1) 11/25/2009 6:40:39 PM


0 Replies
496 Views

(page loaded in 0.018 seconds)

Similiar Articles:













7/22/2012 12:24:16 PM


Reply: