[Gllug] Running gnome-terminal from cron
Tethys
sta296 at astradyne.co.uk
Wed Feb 22 11:08:09 UTC 2006
"Simon Morris" writes:
>It works great, and is much faster but I'd like it to popup every 30
>minutes so I can fill it in and get rid of it.
OK, so rather than using cron, why not just have a script launched by
your window manager? That way it only runs when you're logged in, for
a start. Something like:
#!/bin/sh
while true
do
t1=$(date +%s)
xterm -e "/path/to/your/script"
t2=$(date +%s)
sleep $((1800 + t1 - t2))
done
Thus every 30 minutes, it'll pop up a terminal, and run your timesheet
application. When you log out, the script will be killed by the window
manager.
Tet
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list