29a68de4ba48a56759c0d0d34065477c0c1afd91
[feisty_meow.git] / scripts / tty / keep_awake_process.sh
1 #!/bin/bash
2 # This program is meant to be started by the program keep_awake and has
3 # the basic guts that are meant to execute inside of a semi-perpetual loop.
4
5 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
6
7 # save the process id for the goodbye program to deal with.
8 #echo $$ >>$TMP/trash.last_keep_awake_process
9 #don't let the shutdown guy know who we are; we want to keep running now.
10
11 # loop sort of forever.
12 while true; do
13 # this version is for keeping a modem awake.
14 #  ping -c 7 www.gruntose.com >/dev/null
15
16   echo "trying not to fall asleep at $(date_stringer)"
17   sleep 120
18 done