know if someone ping me
Alex Martelli
aleax at aleax.it
Thu Aug 23 10:12:43 EDT 2001
"Gerhard Häring" <gerhard.nospam at bigfoot.de> wrote in message
news:jtb2m9.v13.ln at gargamel.hqd-internal...
...
> the syslog. With a Python script, you could continuously read from the log
file
> 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.
Alex
More information about the Python-list
mailing list