From: Chris Fowler <cfowler@outpostsentinel.com>
To: linux-ppp@vger.kernel.org
Subject: Re: ppp link time limit
Date: Fri, 25 Sep 2009 18:55:24 +0000 [thread overview]
Message-ID: <1253904924.6726.681.camel@compaq> (raw)
In-Reply-To: <004001ca3e15$69a6b9d0$0413010a@scu.escambray.com.cu>
#!/usr/bin/perl
my $pid = fork();
exit 0 if $pid;
$pid = fork();
if($pid = 0) {
exec "/usr/sbin/pppd", ("call", "isp", "nodetach");
exit 1;
}
sleep 1800;
kill 15, $pid;
On Fri, 2009-09-25 at 14:51 -0400, Charlie Brady wrote:
> On Fri, 25 Sep 2009, Bill Unruh wrote:
>
> > pppd call isp & sleep 1800; killall pppd
>
> The above will kill any pppd process, not just the backgrounded one from
> this shell script.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-09-25 18:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-25 18:20 ppp link time limit Davy Leon
2009-09-25 18:28 ` Chris Fowler
2009-09-25 18:40 ` Bill Unruh
2009-09-25 18:51 ` Charlie Brady
2009-09-25 18:55 ` Chris Fowler [this message]
2009-09-25 18:56 ` James Carlson
2009-09-25 20:28 ` Bill Unruh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1253904924.6726.681.camel@compaq \
--to=cfowler@outpostsentinel.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.