[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: IP madness
- From: "Jeff Hogg" <tastin blkbox com>
- To: <redhat-list redhat com>
- Subject: Re: IP madness
- Date: Wed, 8 Sep 1999 14:08:19 -0500
It would be fairly easy to make a short script to get the new ip and mail it
to you at your connecting machine. A script that looks like this perhaps:
ifconfig > newip
mail yourname your email address < newip
If you called this script something like ip, then you would need to chmod +x
ip to make it executable. Then add it to a cron file to be performed at set
intervals.
As for scheduling, not a problem. Just set cron to perform the command ifup
ppp0 at 8am and ifdown ppp0 and 5pm. This would dial your isp at the start
of the day, and hang up at the end, assuming 8-5 are correct hours. Just
have the ip script run at 8:01 and it should mail you your new ip address.
To learn about cron files, type man cron and man crontab at the prompt, or
you can mail me if you like. Hope this helps..
Jeff Hogg
>
>Can anybody suggest a way around the two problems - lack of IP address, and
scheduling when the machines connects to the internet. We are, as you will
have gathered rather naive users!
>
>Cheers!
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]