Re: ppp link time limit
#!/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@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Audio Users]
[Hams]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite Photos]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Linux Resources]
[Fedora Users]