(Answer) (Category) Products of Aardvarks With Chisels : (Category) Linux : (Category) Handy shell scripts :
pppcheck
#!/bin/bash
# pppcheck.sh - Danny Sauer (last updated Mar 6, 1999)
# check to see if the ppp0 device is active and pppd is running
#  re-establish connection if not
# intended to be called from cron every couple of minutes
#
if ! ((/sbin/ifconfig | grep "ppp0" 1> /dev/null 2>&1 ) ||
      (/bin/ps ax|grep "pppd"| grep -v "grep" 1> /dev/null 2>&1)
     )
then
        /etc/suseppp/scripts/ppp-up generic
fi
[Append to This Answer]
2000-Jul-12 12:58am
Previous: (Answer) everyhost.sh
Next: (Answer) pinghost
This document is: http://www.cloudmaster.com/~sauer/projects/index.cgi?file=83
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by sauer@cloudmaster.com