Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 1996 11:49:16 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        wsantee@wsantee.oz.net (Wes Santee)
Cc:        questions@FreeBSD.org
Subject:   Re: Telling if User PPP is up or down
Message-ID:  <199602151849.LAA02716@phaeton.artisoft.com>
In-Reply-To: <199602150455.UAA00227@wsantee.oz.net> from "Wes Santee" at Feb 14, 96 08:55:26 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602151849.LAA02716>