Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 16:13:33 -0500
From:      ScaryG <freymann@scaryg.shacknet.nu>
To:        "E. J. Cerejo" <ejcerejo@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Script to hangup ppp?
Message-ID:  <20020313161333.799f4737.freymann@scaryg.shacknet.nu>
In-Reply-To: <3C8FBDA1.6020206@yahoo.com>
References:  <3C8FBDA1.6020206@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Mar 2002 15:59:13 -0500
"E. J. Cerejo" <ejcerejo@yahoo.com> 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?

 YOu can put that into a script:

#!/bin/sh
# disconnect ppp
kill `cat /var/run/tun0.pid`

 Notice the back arrows..

 Put an entry in your crontab to run the script, voila.

 Make sure you chmod +x scriptname as well.

-gerry

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?20020313161333.799f4737.freymann>