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!

Multiple hostnames in .NETRC

Status
Not open for further replies.

dsm325

Technical User
Apr 4, 2001
29
US
I know you can have as many hostnames as you want in a .netrc files.

Can you have the same hostname twice with two different user id, if so How will you script an FTP script.

Thanks much
 
From the man page for netrc, it would appear that ftp will only use the first instance of a machine name in a file ...

Identify a remote machine name. The auto-login process searches the .netrc file for a machine token that matches the remote machine specified on the ftp command line or as an open command argument. Once a match is made, the subsequent .netrc tokens are processed, stopping when the EOF is reached or another machine token is encountered.

Greg.
 
I will try that thanks so much for taking the time to answer my question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top