"Muli B.Y." <[EMAIL PROTECTED]> writes:
> I have written a small utility, ifup, which will tell you if any network
> interface is up or down (connected or disconnected).
Can you explain what it does? I mean, is it a wrapper around ifconfig(8)
or netstat(8) or something of the kind? Why is it preferable?
> Now, what I really need is a way to get a notification when an
> interface changes its status. Is there any way to do this under
> linux?
I suppose there is more than one way to do it under Linux.
> (Of course I can sleep() and continually check the interface's
> status,
Yes, you can. You can also use cron.
> but I dislike this approach- can you hear you cpu roasting? :))
No.
--
Oleg Goldshmidt | BLOOMBERG L.P. (BFM) | [EMAIL PROTECTED]
"... We work by wit, and not by witchcraft;
And wit depends on dilatory time." - W. Shakespeare.
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]