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!

FTP and multiple machines in the .netrc

Status
Not open for further replies.

gamesman

Programmer
Oct 8, 2001
223
US
Is it possible?

We're running AIX 4.1 on a R6000. We need to establish a couple of different automated FTP sessions to different servers. Currently have a .netrc file that contains a machine name with id and password and then an "init" macro. This process runs every 2 hours. we need to establish a second process that runs to a different machine once each morning. Can it be added to the same .netrc and if so, will they interfere? If it can't be added how can I automate the second process.

Current .netrc
machine <name> login <*****> password <*****>
macdef init
lcd /usr2
type binary
prompt off
cd <subdir>
mput <files>
bye

Gamesman
jhughes@barbhosp.com
MT(ASCP), MCP, CIW, CNA
 
All of our FTP jobs are 'batch' files or are within other jobs and we use cron to initiate these jobs. If you need an example, I'd be happy to send you one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top