From owner-freebsd-questions Sat Sep 19 15:43:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10794 for freebsd-questions-outgoing; Sat, 19 Sep 1998 15:43:43 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from federation.addy.com (federation.addy.com [207.239.68.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10585 for ; Sat, 19 Sep 1998 15:42:47 -0700 (PDT) (envelope-from francisco@natserv.com) Received: from quisqueya.natserv.com (slip-32-100-112-138.ny.us.ibm.net [32.100.112.138]) by federation.addy.com (8.8.5/8.6.12) with ESMTP id SAA06906; Sat, 19 Sep 1998 18:40:34 -0400 (EDT) Message-Id: <199809192240.SAA06906@federation.addy.com> X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199809192141.WAA09387@woof.lan.awfulhak.org> Date: Sat, 19 Sep 1998 18:40:50 -0000 (GMT) Reply-To: francisco@natserv.com From: Francisco Reyes To: Brian Somers Subject: Re: How to tell if connected to internet? Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 19-Sep-98 Brian Somers wrote: >> What command can I use to tell if I am connected to the internet? >> I found "show ipcp" in ppp, but I am looking for something that would >> either return 0/1 or that I could call on shell script and parse the >> status. > > There's an example in pppctl(8). Tried the following from the example: pppctl -p '' -v /var/run/internet quit I get the error Can not connect to socket /var/run/internet --------------------- francisco@natserv.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message