I'd not thought about sticking it in ip-up. A separate desktop computer makes a ppp connection and my laptop simply routes all external connections through that so there's no reason why I can't bring the script up when my laptop eth0 interface comes up - Thanks for the hint!
Nick
On Wed, 2003-12-31 at 22:51, beneboy wrote:
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
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!