killppp 1.0

killppp purpose is to kill ppp pid after n time of no traffic.
killppp purpose is to kill ppp pid after n time of no traffic. This is especially useful for dial-up users who pay per time-unit of being connected. The typical use for it, is to start a large download along with killppp and go away. The script will shut down ppp after the downloading is done. Thus saving unnecessary cost of unused network connectivity.

Depending on how your linux is configured you may need to be root to have the right to kill a ppp process and it may have to be the ppp daemon (pppd).

To find the pid of your ppp process type: ps aux | grep ppp

How this script works? Once activated, killppp checks every minute for network traffic on the ppp0 device. As long as data is passing through, killppp does nothing. Upon no traffic killppp starts counting time until it reaches the specified time and kills the ppp process.

killppp [-hl] < pid > < n >s|m|h|d

Options:

< pid >, process ID
< n >s|m|h|d, n seconds|minutes|hours|days of no traffic
-h, usage and options (this help)
-m, manual
-l, see this script"

last updated on:
October 4th, 2006, 19:56 GMT
price:
FREE!
developed by:
Dawid Michalczyk
homepage:
www.comp.eonworks.com
license type:
GPL (GNU General Public License) 
category:
ROOT \ System \ Shells

FREE!

In a hurry? Add it to your Download Basket!

user rating 16

3.3/5
 

0/5

Rate it!
1 Screenshot
killppp

Add your review!

SUBMIT