[99974] 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 (Rick L. Mantooth)
Tue Nov 17 20:51:21 1998

Date: Tue, 17 Nov 1998 19:51:05 -0600 (CST)
From: "Rick L. Mantooth" <rickdman@cyberramp.net>
To: Zoki <zokiphoto@magic.fr>
cc: Red Hat Users List <redhat-list@redhat.com>
In-Reply-To: <Pine.LNX.4.05.9811170052210.6342-100000@winbuster.magic.fr>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Zoki,
Here is the begining of my checkmail script:

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


I'm on RH4.1 and ppp-2.2
Rick


On Tue, 17 Nov 1998, Zoki wrote:

> Since I've scripts as cronjobs to take care of mail I 'm having the
> annoying experience that the scripts try to make a connection even if I'm
> allready on line. What I would like to do is make the script check if
> there is a connection and if so skip the dialing and go straight to
> downloading and sending mail. I checked in the archives but couldn't find
> the answer to this question. I've an idea I should work with grep but
> since I never used it, I don't know its "grammar".
> 
> Thanks,
> Zoki.
> _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
> ZOKImage Paris
> 	Creation d'images est traitement numerique
> 			Image creation & digital tweaking
> _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
> 
> Mailed with Linux and Pine.
> 

--
Rick L. Mantooth	rickdman@cyberramp.net
http://www.cyberramp.net/~rickdman
We have enough youth, how about a fountain of "Smart."


-- 
  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