I run sieve on a laptop, and I don't want to run the battery down with sieve
when it's not plugged in to the wall. So I wrote the following shell scripts,
which start it automatically, run it nicely, and suspend it when the battery is
low. You will have to have APM in your kernel to get anything useful out of
battery. Be sure to change the home dir to yours.

Note: This is run from the crontab every minute. Cron does not use your normal
shell environment. That is why the path to sieve is spelled out.

phma

batcheck

sieben

#!/bin/sh
cut -f 7 -d " " /proc/apm

Reply via email to