[100228] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Check for ppp connexion in script

daemon@ATHENA.MIT.EDU (Zoki)
Wed Nov 18 23:45:01 1998

Date: Thu, 19 Nov 1998 00:49:33 +0100 (CET)
From: Zoki <zokiphoto@magic.fr>
To: Red Hat Users List <redhat-list@redhat.com>
In-Reply-To: <Pine.LNX.3.95.981117194610.31853A-100000@localhost>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

<snip>

->#!/bin/sh
->while :
->do
->  if [ -f /var/run/ppp0.pid ] 
->  then
->    popclient etc.....
->  else
->    echo "Not On-Line, skipping..." >/dev/console  
->  fi
->done


*** Thanks everybody for the feedback. I ended up using the above
combination from Rick without the "while...do" statement. It works great.
Thanks again!

Cheers,
Zoki.
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
ZOKImage Paris
	Creation d'images est traitement numerique
			Image creation & digital tweaking
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/

Mailed with Linux and Pine.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post