Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 1997 03:22:45 -0800 (AKDT)
From:      Steve Howe <un_x@anchorage.net>
To:        Bryce Newall <data@ds9.abac.com>
Cc:        FreeBSD Questions List <freebsd-questions@FreeBSD.org>
Subject:   Re: Keeping a process running
Message-ID:  <Pine.BSF.3.95q.970509032058.378D-100000@aak.anchorage.net>
In-Reply-To: <Pine.LNX.3.96.970508093634.20608H-100000@ds9.abac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> #!/bin/sh
> 
> PIDFILE="/home/data/ppp.ps"
> 
> ps -ax > $PIDFILE
> if [ `grep -c "pppd" $PIDFILE` -eq 0 ]; then
>   /usr/sbin/ppp-on
> fi
> 
> rm -f $PIDFILE

if [ `ps -ax | grep -c pppd` = 0 ]; then ppp-on; fi
-------------------------------------------------------------------------
 Sleep: a sign a caffeine deprivation ... http://www.anchorage.net/~un_x
-------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970509032058.378D-100000>