From owner-freebsd-questions Thu Feb 15 10:51:19 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA14913 for questions-outgoing; Thu, 15 Feb 1996 10:51:19 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA14908 for ; Thu, 15 Feb 1996 10:51:17 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA02716; Thu, 15 Feb 1996 11:49:16 -0700 From: Terry Lambert Message-Id: <199602151849.LAA02716@phaeton.artisoft.com> Subject: Re: Telling if User PPP is up or down To: wsantee@wsantee.oz.net (Wes Santee) Date: Thu, 15 Feb 1996 11:49:16 -0700 (MST) Cc: questions@FreeBSD.org In-Reply-To: <199602150455.UAA00227@wsantee.oz.net> from "Wes Santee" at Feb 14, 96 08:55:26 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org Precedence: bulk > 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.