Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 01:41:25 GMT
From:      Salvo Bartolotta <bartequi@neomedia.it>
To:        "Duke Normandin" <dnormandin@freewwweb.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How to close a ppp connection?
Message-ID:  <20000531.1412500@bartequi.ottodomain.org>
In-Reply-To: <000701bfca91$599a0d00$6bdba7d1@odie>
References:  <000701bfca91$599a0d00$6bdba7d1@odie>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 5/31/00, 12:45:34 AM, "Duke Normandin" <dnormandin@freewwweb.com>=20
wrote regarding How to close a ppp connection?:


> Background: 3.3R on a standalone box

> ppp / lynx are working great, except that I don't know (read , can't=20
find)
> how to shutdown a connection when I'm through. I use=20
`/etc/start_if.tun0`
> which contain `ppp -auto my_isp` to bring ppp up at boot-time. As it=20
is,
> I have to wait for `set timeout =3D 300` to kick in, or use `kill -HUP=
=20
"ppp pid"
> `.

> -sidebar-
> Buried somewhere deep in /usr/ are html-type docs etc in languages=20
other
> than English which are of no use to me. It is safe to nuke these dir /=
=20
files?

> -duke


Hello Duke,

use ``ps ax'' & ``awk'' to feed the kill command ... before reading=20
the next line :-))


For the impatient: ps ax | awk '$5 =3D=3D "ppp" { system("kill " $1)}'  =
=20

Regards,
Salvo





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?20000531.1412500>