Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Notify yourself periodically using Growl' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Notify yourself periodically using Growl
Authored by: fracai on Sep 28, '07 08:33:00AM
If you really want this to go on forever ( instead of for just under a week ... :) ) you could use the following.
for ((;;)); do sleep 600s && echo running; done
Note the use of "for ((;;))". A for loop like that is my preferred method of infinite looping. Also, you don't need the "s" to indicate seconds for sleep. It's informative, but the default is seconds. If you want this to go every 10 minutes, you could just use "10m" as the argument to sleep.
for ((;;)); do sleep 10m && echo running; done
Replace the "echo with the growlnotify command of course

---
i am jack's amusing sig file

[ Reply to This | # ]

Notify yourself periodically using Growl
Authored by: fracai on Sep 28, '07 08:34:22AM

Heh,

You could also set up a launchd process to run every 600 seconds... but that's just silly. ;)

---
i am jack's amusing sig file



[ Reply to This | # ]
Using cron
Authored by: lullabud on Sep 28, '07 01:57:18PM
Hah, I think it's amusing that I'm not the only one who has growl reminding himself to get up and drink water. :) I do it with cron though, every hour...

0 10-17 * * 1-5 /usr/local/bin/growlnotify -s -m "Drink some water" -I "/Users/dho/Documents/icons/drinX/Xwater/" &> /dev/null

[ Reply to This | # ]
Notify yourself periodically using Growl
Authored by: S Barman on Sep 28, '07 09:48:52PM
Actually, the 's' and 'm' does not work on the "standard" version of sleep. You will have to convert it to the number of seconds. How about a much shorter version:
while sleep 600; do growlnotify -s -m 'Take a Drink!'; done
I am a fan of short and simple!!
:-)


[ Reply to This | # ]