+if [ -f $HOME/monitor/SKIP ] ; then
+ # echo "SKIPPING Monitor"
+ # exit
+ # TODO: should be possible to kill the old version if
+ # desired and prevent lingering instances of automate.
+ if [ -z "$1" ] ; then
+ echo "KILLING Monitor"
+ PID=`cat $HOME/monitor/SKIP`
+ rm -f $HOME/monitor/SKIP
+ ./kill.cmd.sh $PID
+ else
+ # skipping monitor
+ echo "SKIPPING Monitor"
+ exit
+ fi
+fi
+echo $$ > $HOME/monitor/SKIP
+