Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 1996 15:47:51 -0500
From:      Jerry Kendall <jerry@border.com>
To:        Terry Lambert <terry@lambert.org>
Cc:        Wes Santee <wsantee@wsantee.oz.net>, questions@freebsd.org
Subject:   Re: Telling if User PPP is up or down
Message-ID:  <96Feb15.155001est.20482-2@janus.border.com>
In-Reply-To: <199602151849.LAA02716@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Call me bind, BUT, How is this going to tell if the dial-on-demand
feature has the line currently in use.

Should you NOT check for a current lock file first..????


On Thu, 15 Feb 1996, Terry Lambert wrote:

> 
> > Is there a way to determine (from a shell script) if the
> > user-process PPP daemon currently has the line up or down when using
> > dial-on-demand PPP?  
> 
> #!/bin/sh
> #
> # pppup
> 
> ps -gax | grep -v grep | grep ppp
> if test "$?" = "0"
> then
> 	echo "yes"
> else
> 	echo "no"
> fi
> 
> 
> 					Terry Lambert
> 					terry@lambert.org
> ---
> Any opinions in this posting are my own and not those of my present
> or previous employers.
> 

--------------------------------------------------------------------------------

Any comments or opinions in this message are my own and may or may not reflect
the comments or opinions of my present or previous employers.

                    Jerry Kendall      Border Network Technologies Inc.
         System Software Engineer      Tel +1-416-368-7157 ext 303
                 jerry@border.com      Fax +1-416-368-7178





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96Feb15.155001est.20482-2>