Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 22:17:58 +0100
From:      Paul Everlund <tdv94ped@cs.umu.se>
To:        "E. J. Cerejo" <ejcerejo@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Script to hangup ppp?
Message-ID:  <3C8FC206.FD02D555@cs.umu.se>
References:  <3C8FBDA1.6020206@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"E. J. Cerejo" wrote:
> 
> I'm being disconecting from the internet by first checking the pid #
> using " #cat /var/run/tun0.pid and then " kill " does anyone have a
> script to all of this automatically?

Try:
kill `cat /var/run/tun0.pid`

And from there the step isn't far away to do the following (in tcsh):
alias kp kill `cat /var/run/tun0.pid`

Typing kp and hitting enter is now killing your ppp.

If you want to use another more descriptive name than kp, then feel
free to do that. :-)

Best regards,
Paul

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?3C8FC206.FD02D555>