know if someone ping me

Alex Martelli aleax at
Thu Aug 23 16:12:43 CEST 2001

"Gerhard Häring" <gerhard.nospam at> wrote in message
news:jtb2m9.v13.ln at gargamel.hqd-internal...
> the syslog. With a Python script, you could continuously read from the log
> and do whatever pleases you if you find an ICMP request.

You can do much better than this!  With newer syslogd's, at
least on Linux, you can log to a named pipe, so your Python
program can just 'loop' reading from that named pipe and be
woken up for processing when there's something to process --
a MUCH better idea than 'polling' (continuosly read from
a file) in terms of system-load for infrequent events.


More information about the Python-list mailing list