From owner-freebsd-questions Fri May 9 06:49:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA03785 for questions-outgoing; Fri, 9 May 1997 06:49:18 -0700 (PDT) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA03760 for ; Fri, 9 May 1997 06:49:13 -0700 (PDT) Received: from iceberg.anchorage.net. (root@iceberg.anchorage.net [207.14.72.150]) by agora.rdrop.com (8.8.5/8.8.5) with SMTP id EAA01614 for ; Fri, 9 May 1997 04:37:35 -0700 (PDT) Received: from aak.anchorage.net (ai-132 [207.14.72.132]) by iceberg.anchorage.net. (8.6.11/8.7.3) with SMTP id CAA19829; Fri, 9 May 1997 02:29:46 -0800 Date: Fri, 9 May 1997 03:22:45 -0800 (AKDT) From: Steve Howe X-Sender: abc@aak.anchorage.net To: Bryce Newall cc: FreeBSD Questions List Subject: Re: Keeping a process running In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > #!/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 -------------------------------------------------------------------------