![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SFTP Failed---Request for subsystem 'sftp' failed on channel 0 | mahiban | AIX | 0 | 07-25-2008 03:51 AM |
| ls while read loop - internal read picking up wrong input | dkieran | Shell Programming and Scripting | 2 | 05-14-2007 04:02 PM |
| Automate batchfile generation for sFTP | mpang_ | Shell Programming and Scripting | 0 | 04-26-2006 06:34 AM |
| Cannot read in variable using read on first try | normie | UNIX for Advanced & Expert Users | 1 | 10-05-2005 02:42 AM |
| read line and read next | ariuscy | UNIX for Dummies Questions & Answers | 7 | 09-21-2005 08:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sftp -b doesn't read the batchfile
Several of our end-users need to send a file to our insurance carrier using ssh and sftp. We've put together a Windows VBS script that opens the ssh tunnel and calls sftp with the -b option pointing to a batch script in the same directory, however sftp doesn't seems to be reading from the batchfile. There are no error messages, and once we have the sftp prompt we can manually run the lcd, cd and put commands to transfer the file. Is there another option that needs to be added to the sftp command in addition to the -b option to get it to read from the batch script? The full sftp command is:
sftp -oIdentityFile=c:\openssh\userkeys\SSHkey -oPort=999 sshuser@localhost -bsend_files.srp" send_files.srp is something like this: lcd J:\path\to\outgoing cd /path/to/incoming put file.dat quit We're using OpenSSH do do the transfer. kmw |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|