You are not logged in.

#1 2011-07-11 14:44:49

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Help with bash script that fails after suspend to RAM

I have a very simple reminder script that uses an endless loop, sleep and zenity to pop up a reminder every twenty minutes:

#!/bin/bash
while true;
do
   sleep 20m
   zenity --warning --title="Ergonomics Reminder" --text="Check Posture or Have a Stretch!"
done

However, it does not work as it should after suspending to RAM. I am thinking I need to kill the process and restart it after every suspend, using a "thaw" notice in /etc/pm but if there is an easier way to do it please let me know!


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

Board footer

Powered by FluxBB