MLUG: Re: [MLUG] Checking network interfaces
Re: [MLUG] Checking network interfaces
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Russell Horn wrote:

> Folks,
> 
> I have a script I want to run if interface ppp0 goes down. How would you
> go about testing if it's down and then calling the script.
> 
> I'm thinking I might have to use cron and bash - grep the output of
> ifconfig and determine whether to run my script.
> 
> Any alternatives?
> 
> Russell
> 

If you run RedHat, you should find ifup-ppp and ifdown-ppp scripts under 
/etc/sysconfig/network-scripts/. You can add your own stuff into those 
scripts.

--
MK

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members