> Is there some reason you can't just use something like
> --sleep-command="sh -c 'play ~/sound/claves*.wav; sleep 15; hibernate'"
I could. However, in order to prevent suspending I would have to run
ps, find the process number for the above command, and kill it. If
sleepd started them as two independent commands (one after T-15 sec of
inactivity, the other after T sec), then all I would have to do is
touch any key.
OTOH I haven't thought of a graceful way of handling the "running out
of power" case. I suppose I could use something like
--sleep-command="sh -c 'play ~/sound/claves*.wav; sleep 15; if [ ! -e
/tmp/stay-alive ]; then hibernate; fi'"
so to keep the machine running I would have find a terminal and type
"touch /tmp/stay-alive". Still awkward, though.
- Jim Van Zandt
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]