On Wednesday 31 December 2003 7:42 pm, Nick Heppleston wrote:
I've written a small script that flashes my caps-lock LED when I get new mail as I run Evolution on a different desktop to my main working / browser desktop.
I'm after having this script start when my system is booted and stops when the system shuts down. Apart from writing an init script, is there any other/better way to start the script?
How about puttng the call to the script in the ip-up file? (and killing it in ip-down). Then it should only be called once when your PPP connection is made. Of course, I'm assuming you are using PPP ;-)
If you've got a router or something, I guess you could always set up a cron job to run every 5 minutes or so that will grep the output of ifconfig -a to see if the connection to the router is there or not. Or is that classed as a nasty hack, rather than better than starting it on boot?
BenE