You could try something like the following :

lynx -dump --accept_all_cookies http://ip2location.com | grep "IP Address :"
| mail -s "IP Address" *n...@domain.com*

**Don't forget to change the email address at the end

You could insert this into the crontab to run at whatever interval is
suitable - even better would be to dump the IP address to a file and then
compare the output and only send an email when it has changed

Martin

On 17 February 2011 21:34, Bartosz Dubiel <dzide...@gmail.com> wrote:

> First of all hello to all of you,
>
> I'm new here, as watching this mailing list only for couple months
> now. Unfortunately I couldn't come for any of PLUG meetings to date
> and will not be able to come for next few months as my partner expects
> our first baby :) (which will keep me busy for some time).
>
> I've question which you probably will be able to answer...
>
> There are two machines in Poland, they are running Ubuntu 10.04. They
> are connected over ADSL with dynamic IP, each time when I need gain
> access to SSH or VNC I must ask someone to give me a current IP
> address. You can probably imagine how annoying it is. I don't want to
> use services like DDNS and I'm looking for other solution.
>
> And there is my question... How can I force remote machine to send a
> message with it's IP to my computer, let say twice every day.
>
> I was considering connection (on specific port)  which will bounce
> from my VM Hubs firewall... I do not need a log file on my machine...
>
> any solutions is much appreciated
>
> My system is Linux Mint 10 (Gnome), connected to a virgin media cable (VM
> Hub)
>
> Best Regards
> Bartosz Dubiel
>
> PS. my apologies for poor English but eventually I'll get better :)
>
> _______________________________________________
> Peterboro mailing list
> Peterboro@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/peterboro
>
_______________________________________________
Peterboro mailing list
Peterboro@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to