Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-08-2003, 12:39 PM
|
#1
|
LQ Newbie
Registered: Jun 2003
Location: Argentina - Bs. As.
Distribution: RH9
Posts: 14
Rep:
|
monitoring IP changes
Anybody know a similar program like KEEP ME POSTED?
I wanna see WAN IP changes and to have a report by mail or FTP (best if possible).
THX2ALL
|
|
|
08-08-2003, 12:48 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Why not just write a script that is run by cron and connects to:
http://checkip.dyndns.org/
|
|
|
08-08-2003, 12:55 PM
|
#3
|
LQ Newbie
Registered: Jun 2003
Location: Argentina - Bs. As.
Distribution: RH9
Posts: 14
Original Poster
Rep:
|
I dont know how to write scripts, im too newbie!!! 
Do u have one?
|
|
|
08-08-2003, 01:05 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I'm not at a linux box right now but something like this should work:
Code:
#!/bin/bash
NEWIP=`lynx -dump http://checkip.dyndns.org | grep "Current IP Address" | cut -d" " -f2`
OLDIP=`cat ~/mylastip`
if [ $NEWIP ne $OLDIP ]; then
echo $NEWIP > ~/mylastip
# Change the next command to a mail command etc if you want the result mailed to you
echo Your ip address has changed from $OLDIP to $NEWIP
fi
|
|
|
08-23-2003, 08:31 AM
|
#5
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Ok - like I said I wasn't at a linux box - someine else asked about this so I re did it:
http://www.linuxquestions.org/questi...037#post439037
|
|
|
All times are GMT -5. The time now is 03:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|