From owner-freebsd-questions Tue Sep 22 11:39:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29295 for freebsd-questions-outgoing; Tue, 22 Sep 1998 11:39:29 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29285 for ; Tue, 22 Sep 1998 11:39:22 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA19636; Tue, 22 Sep 1998 19:38:48 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id LAA21410; Tue, 22 Sep 1998 11:32:40 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199809221032.LAA21410@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: francisco@natserv.com cc: Brian Somers , questions@FreeBSD.ORG Subject: Re: How to tell if connected to internet? In-reply-to: Your message of "Sat, 19 Sep 1998 18:40:50 -0000." <199809192240.SAA06906@federation.addy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 22 Sep 1998 11:32:38 +0100 From: Brian Somers 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 Read the pppctl man page. You need ``set socket'' in your ppp config. > > --------------------- > francisco@natserv.com -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message