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!

Problems Using .netrc file for automated FTP 1

Status
Not open for further replies.
Jan 19, 2000
57
US
Hi folks!

I'm rather confused about an intermittent problem I've been having using .netrc files for automated FTPs. The format I use is as follows:

machine ftp.machine.com login username password mypassword
macdef init
put localfilename remotefilename
bye

This would seem to be pretty straight forward, and I've had good success using the same formula in the past. However, I keep running into the same problem when I first create a new .netrc process.

In the ftplog of the process, I see the following error:

Macro definition missing null line terminator.

As I have already stated, I have experienced this problem in the past. Each time, the problem has seemed to correct itself (I try the new process a few days later, for example, and it works!). If I did something to correct it, I sure as heck would like to know what it was!

Any ideas, so that you might help me prevent any future forehead-to-keyboard collisions?

Thanks in advance!

Mikeymac
 
the .netrc file must be terminated with a null line.
example:

machine ftp.machine.com login username password mypassword
macdef init
put localfilename remotefilename
bye

EOF


Tony ... aka chgwhat
tony_b@technologist.com

When in doubt,,, Power out...
 
It worked. I feel rather foolish, but.....

"Better to ask a question once and be thought a fool once, than never to ask and remain a fool forever".


Thanks!

Mikeymac
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top