Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Works for me' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Works for me
Authored by: clabough on Feb 07, '03 01:14:40PM

Thank you for this. My ISP keeps changing my IP on me, almost daily. Makes it hard to login remotely. One problem I had with getting this to work was when I copied the text for the .netrc file, it put an extra return after each line with text. There cant be any blank lines between the lines of text or the macro wont work. In fact it will go into an semi-infinite loop and probably bug the server administrator of the ftp server you are connecting to.

The other problem I ran into was that the grep search wasnt finding the correct spot. I ended up changing:
grep –A 3 "Your IP Address is:" ~/scripts/sendIP/File1 > ~/scripts/sendIP/File2

to

grep –A 3 "Address is:" ~/scripts/sendIP/File1 > ~/scripts/sendIP/File2



[ Reply to This | # ]