Package: cpulimit
Version: 1.1-13
Severity: wishlist

On archived bug #374838 ( 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374838 )
someone wanted to pass arguments to the command run by cpulimit.

I've found there is a simple way which works for many commands which run from 
cron.

Because cpulimit waits for the command to exit, you can run the command in the 
background.

Like in this example which prevents the fans of my computer to start running 
ones a week:

/usr/sbin/update-apt-xapian-index --quiet &
cpulimit -l 30 -p $! > /dev/null 2>&1

In this example $! is the PID of the last run command.

Obviously pressing Control-C when such a command is run from the command line 
would only kill
cpulimit so that is why I suggested it for cron only.

Hope this is helpful.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to