From owner-freebsd-questions Thu Feb 15 12:49:22 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA21762 for questions-outgoing; Thu, 15 Feb 1996 12:49:22 -0800 (PST) Received: from border.com (ns.border.com [199.71.190.98]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA21742 for ; Thu, 15 Feb 1996 12:49:03 -0800 (PST) Received: by janus.border.com id <20482-2>; Thu, 15 Feb 1996 15:50:01 -0500 Date: Thu, 15 Feb 1996 15:47:51 -0500 From: Jerry Kendall To: Terry Lambert Cc: Wes Santee , questions@freebsd.org Subject: Re: Telling if User PPP is up or down In-Reply-To: <199602151849.LAA02716@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <96Feb15.155001est.20482-2@janus.border.com> Sender: owner-questions@freebsd.org Precedence: bulk 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