How to tell IP address of remote machine?

Mike Cloaked mike.cloaked at gmail.com
Sun Oct 25 19:53:36 UTC 2009




Tom H-4 wrote:
> 
> 
>> I guess I could use lynx, and try to abstract the address ...)
> 
> What you seem to want is the ADSL modem's IP address.
> 
> 

I guess you could construct a shell script that contains a line with 
/usr/bin/curl -u user:pass http:embedded-modem-url > /tmp/modemstatus
Then use some editing in the script to find the ip address in the
/tmp/modemstatus file, and email yourself with the ip address once it is
found from within the script by doing a manual send. Finally once the mail
has been sent then remove the temporary file?

Then run the script from a cron job periodically. I used to use a scheme
like this some years ago for a friend with a dynamic ip address...


-- 
View this message in context: http://www.nabble.com/How-to-tell-IP-address-of-remote-machine--tp26047368p26051182.html
Sent from the Fedora List mailing list archive at Nabble.com.




More information about the fedora-list mailing list