How to write a simple timed popup reminder script
Wander Boessenkool
wander at kanslozebagger.org
Thu Jun 29 13:46:11 UTC 2006
On 6/29/06, Sean Hammond <sean.hammond at gmail.com> wrote:
> Okay, I want to write a script for Ubuntu that will pop-up a reminder
> every 20 minutes saying "if someone else is waiting, don't hog the
> computer" (exact text to be confirmed). It's for use in a busy cafe
> running Ubuntu for free, open Internet access.
>
> Question: What is the best way to do this?
>
-You could do it from a script launched at login
#/bin/bash
while true; do sleep 1200; notify-send -u critical -t 5000 -i
mail-notification "Hogging?" "If someone else is waiting please don't
hog the computer."; done
-Or you could put that command in your crontab (with crontab -e)
*/20 * * * * /usr/bin/notify-send -u critical -t 5000 -i
mail-notification "Hogging?" "If someone else is waiting please don't
hog the computer."
You will need to install libnotify-bin from either synaptic/adept or
"$sudo apt-get install libnotify-bin" To use the fancy notifier stuff.
--
Wander
More information about the ubuntu-users
mailing list