Re: How to tell IP address of remote machine?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux