(Q) Running a program if and only if connected

Timothy Murphy tim at birdsnest.maths.tcd.ie
Sun Sep 22 10:29:35 EST 2002

Probably a very elementary question ...

I want to run a program on my laptop when I switch on
if and only if it is connected to my desktop.
What is the best way to do this?

At present I have rather a complicated script in /etc/rc.d/rc.local
(under RedHat-7.3) examining the output of "iwconfig eth0",
but I'm sure there must be a better way than that.

Timothy Murphy  
e-mail: tim at birdsnest.maths.tcd.ie
tel: 00353-86-233 6090
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

More information about the wireless mailing list