sftp automation

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a script that basically does an sftp.  The password is
recognised by the system and does not require to be added.

#script sftp
sftp abc123@intel.com
mput *

How come the script does not run?  it does connect and just waits at
the sftp prompt.
It does not trigger the mput * command.

Is there a way to automate this?

Re: sftp automation

rogv wrote:
Quoted text here. Click to load it

your script tries to execute the sftp commands as shell comands after
the sftp process ends.
if you use bourne or bash shell do this:

sftp host << EOI
sftp commands

or look up sftp -b Option

J. Gann

Re: sftp automation

Quoted text here. Click to load it

Thank you that works

Site Timeline