cleaner implementation of keep_awake
[feisty_meow.git] / scripts / tty / keep_awake_process.sh
1 #!/bin/bash
2
3 # This program is meant to be started by the program keep_awake and has
4 # the guts that are meant to execute inside of a semi-perpetual loop.
5
6 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
7
8 #hmmm: is there still a process management thingy, referred to below, active in our scripts???
9 # save the process id for the goodbye program to deal with.
10 #echo $$ >>$TMP/trash.last_keep_awake_process
11 #don't let the shutdown guy know who we are; we want to keep running now.
12
13 # loop sort of forever.
14 while true; do
15   echo "trying not to fall asleep at $(date_stringer)"
16   # magical number of seconds to sleep...
17   sleep 64
18 done