Date: Sun, 20 Sep 1998 13:19:50 +0100 From: Brian Somers <brian@Awfulhak.org> To: francisco@natserv.com Cc: Brian Somers <brian@Awfulhak.org>, questions@FreeBSD.ORG Subject: Re: How to tell if connected to internet? Message-ID: <199809201219.NAA06198@woof.lan.awfulhak.org> In-Reply-To: Your message of "Sat, 19 Sep 1998 18:40:50 -0000." <199809192240.SAA06906@federation.addy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>
> 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
So cast your eyes up a few lines to the bit that says
set server /var/run/internet "" 0177
> ---------------------
> francisco@natserv.com
>
--
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809201219.NAA06198>
