Using .netrc for automated ftp - LUX.ET.UMBRA
62

Using .netrc for automated ftp

| | Comments (0) | TrackBacks (0)

Sometimes there comes a need to actually automatically ftp things. But usually when you automatically ftp things, you have to enter in a password. The way around this is to use the .netrc file.

The .netrc file stores the machine name, the login, and the password for the ftp. This allows you to set up ftp actions without having to mess with the interactive parts and do everything else directly from a shell script.

Not exactly something that you'd want to always do for everything, but now and again behind a firewalled network, isn't a bad idea for automated backups. Even if your passwords change constantly through a time seeded hardware device, you can set it up so that everything is still running from a shell script and the only thing you would have to do is type in the password. Beats doing things manually, eh?

0 TrackBacks

Listed below are links to blogs that reference this entry: Using .netrc for automated ftp.

TrackBack URL for this entry: http://life.firelace.com/mt-cgi/mt-tb.cgi/7629

Leave a comment

 

About this Entry

This page contains a single entry by darkmoon published on June 20, 2008 12:01 AM.

Weave was the previous entry in this blog.

Anime Review: Lady Death is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

 

 

 

 

Powered by Movable Type 4.23-en