LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-08-2003, 12:39 PM   #1
aru_titi
LQ Newbie
 
Registered: Jun 2003
Location: Argentina - Bs. As.
Distribution: RH9
Posts: 14

Rep: Reputation: 0
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
 
Old 08-08-2003, 12:48 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Why not just write a script that is run by cron and connects to:
http://checkip.dyndns.org/
 
Old 08-08-2003, 12:55 PM   #3
aru_titi
LQ Newbie
 
Registered: Jun 2003
Location: Argentina - Bs. As.
Distribution: RH9
Posts: 14

Original Poster
Rep: Reputation: 0
I dont know how to write scripts, im too newbie!!!
Do u have one?
 
Old 08-08-2003, 01:05 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
Old 08-23-2003, 08:31 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring squid gubak Linux - Networking 2 08-19-2004 07:53 AM
Process Monitoring arb Linux - Newbie 1 09-15-2003 08:35 AM
Process monitoring arb Linux - General 3 09-15-2003 03:29 AM
Monitoring with vsftpd frotzed Linux - Software 2 09-03-2003 03:36 PM
Monitoring jISV Linux - General 6 06-05-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration