Marc Mutz <[EMAIL PROTECTED]> said: 

> <snip>
> 
> You can use crontab(1) to instruct cron(8) to run the following every
> hour:
> 
> Q> ping -c1 $REMOTE_IP || /sbin/ifdown $IF && /sbin/ifup $IF
> 
> (
> a crontab line would look like the following:
> Q> 0 * * * * ping -c1 $REMOTE_IP || /sbin/ifdown $IF && /sbin/ifup $IF
> )
> 
> where $REMOTE_IP is the IP address of the dial-in host at your ISP and
> $IF the network interface (ppp1 in your mail).
> There is, of course, room for improvenemts, e.g. using multiple pings to
> see if the link is really dead or a big ftp transfer causes ping packets
> to get lost.
> But you should get the idea...
> 
> Marc
Ok I've done this and in a sense it works (I think).. but When I look do 
a  "tail -f /var/log/messgaes" I get this:
May 30 15:11:49 mr_bumpy ifup-ppp: pppd started for ppp1 on /dev/modem at 
115200
May 30 15:11:49 mr_bumpy pppd[13476]: pppd 2.3.7 started by root, uid 0
May 30 15:11:49 mr_bumpy pppd[13476]: Device modem is locked by pid 13328
May 30 15:11:49 mr_bumpy pppd[13476]: Exit.
May 30 15:12:04 mr_bumpy ifup-ppp: pppd started for ppp1 on /dev/modem at 
115200
May 30 15:12:04 mr_bumpy pppd[13482]: pppd 2.3.7 started by root, uid 0
May 30 15:12:04 mr_bumpy pppd[13482]: Device modem is locked by pid 13328
May 30 15:12:04 mr_bumpy pppd[13482]: Exit.

It seems to keep running every 20 seconds or so, even if the connection is 
true and there is no other activity on the link.. why?
I have to find the actions pid then kill it.. and it stops..
any ideas?
thanks 
Marcus



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to