Hello list folk,
Quicky: ip-up.local stays alive while the ICIP portion of the ppp conection is alive.
I don't know what ICIP is, but assume it means while the ppp conection is up.
I would like to make a loop in ip-up.local so that a serialmail program associated
with qmail gets executed every 5 minutes if the conection stays up. Have thought about
a cron related solution as well, but think that if I can loop a portion of the
ip-up.local script it would be best.
How would you recommend doing the loop?
This is what I've come up with to be put at the bottom of the script.
sleep 300
ps aux > ps.tmp
while {grep pppd ps.tmp} {
serialmail cmd
rm -f ps.tmp
sleep 300
ps aux > ps.tmp
}
rm -f ps.tmp
shaky I know. - cheers - eric
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]