Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to automate thru sftp

Status
Not open for further replies.

uguess

Technical User
Nov 5, 2004
40
CA
Can someone guide me how to write shell script using sftp command to automate login & password & sending file to FTP server.

Thanks
 
Not possible unless you use something like the expect command.

Also you could try the secure copy scp instead of sftp. [3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Consider useing ssh keys for a password-less login so you could scp or sftp easily.


"If you always do what you've always done, you will always be where you've always been."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top