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!

using .netrc for FTP

Status
Not open for further replies.

mufka

ISP
Dec 18, 2000
587
US
I need to automate some file transfers via ftp. I've gotten the .netrc file to login but I can't pass any other commands through it. I haven't found any good docs on how to do anything but login.

Any ideas?

 
ftp -i xx.xx.xx.xx << EOT
lcd /var/log
bin
hash
put filename
bye
EOT

I got this from a co-worker for automating logfile ftps to a centralized server, so I have no idea where any documentation is on it -- sorry.

Hope this helps,
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top