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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

non-interactive ftp

Status
Not open for further replies.

lorel

MIS
Jun 15, 2004
158
I have the need to write a script using ftp to transfer some files between Unix systems.
Is there a way to run a ftp script that will not require user's input?

Thanks

Joe
 
A starting point:
echo "
user UserName PassWord
cd /path/to/remotedir
lcd /path/to/localdir
binary
mget *.inp
mput *.out
bye
" | ftp -in NameOrIp

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV, your solution allowed me to write the script I needed!
Thanks again

Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top