How to run a code when network connection changes on Mac OS X?
I need to run a script on my Mac when network connection changes, i.e. when network cable/wifi gets connected or disconnected. I do not want to use a cronjob and I'd prefer a soulution that avoids modifying system files. Is there some "network changed" hook in the mac os x I could connect on?

thanks,
Bob
How to run a code when network connection changes on Mac OS X?
===

I need to run a script on my Mac when network connection changes, i.e. when network cable/wifi gets connected or disconnected. I do not want to use a cronjob and I'd prefer a soulution that avoids modifying system files. Is there some "network changed" hook in the mac os x I could connect on?

thanks,
Bob