I am getting an error while running through the batch file through command line-- using Tectia SFTP Client --> 220.127.116.11
command line -->
Can you please advice what i need to do in-order to get this running...
Thanks in advance.
When using a batch file with the sftpg3 client, the batch file should contain only sftp commands. In your example you're trying to execute sftpg3 within the batch file and this fails since this is not a valid sftp command. You'll need to specify the destination hostname or profile on the command prompt rather than in the batch file itself. Such as:
And batch.txt could contain something like this:
Also note that when using batch mode you'll need to have the hostkey saved and setup some form of non-interactive authentication so that your script doesn't fail when receiving a prompt for password or to save the server's hostkey.
See here for more info on the allowed commands: http://productdocs.ssh.com/support/documentation/online/ssh/winhelp/61/sftpg3.html
answered Aug 25 '10 at 13:15