Thanks for the suggestions, Nimrod, I have implemented the
online/offline thing this way. Shame on me for not having read the FAQ
(where this stuff is mentioned) for quite some time.
Nevertheless, it was a good excersize and my original question stands:
Windows has RasConnectionNotification(). What does linux have except
constant polling?
Alex Shnitman wrote:
>
> On Mon, Dec 20, 1999 at 11:47:14PM +0200, Nimrod Mesika wrote:
>
> >
> > nimrodm:~$ cat /etc/ppp/ip-up.local
> > #!/bin/sh
> > echo 'status online' >/home/nimrodm/.licq/licq_fifo
> > nimrodm:~$
> >
> > nimrodm:~$ cat /etc/ppp/ip-down.local
> > #!/bin/sh
> > echo 'status offline' >/home/nimrodm/.licq/licq_fifo
> > nimrodm:~$
> >
> > That's how it's done for Licq ($HOME/.licq/licq_fifo is a named pipe).
>
> Neat! I didn't know that. Just goes to show how you need to RTFM
> before you set out to write code. :-)
>
> --
> Alex Shnitman | http://www.debian.org
> [EMAIL PROTECTED], [EMAIL PROTECTED] +-----------------------
> http://alexsh.hectic.net UIN 188956 PGP key on web page
> E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
--
Muli B.Y.
email: [EMAIL PROTECTED]
linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead
=================================================================
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]