Re: Redirecting stderr and stdout to syslog

2008-08-05 Thread Lincoln Yeoh
At 03:29 AM 8/6/2008, Matthew Woodcraft wrote: In article <[EMAIL PROTECTED]>, > How do I redirect ALL stderr stuff to syslog, even stderr from > external programs that don't explicitly change their own stderr? Sending messages to syslog involves more than writing to a file descriptor, so there

Redirecting stderr and stdout to syslog

2008-08-05 Thread Lincoln Yeoh
Hi, I've just started to learn python (I've been using perl for some years). How do I redirect ALL stderr stuff to syslog, even stderr from external programs that don't explicitly change their own stderr? Say I have a program called foo: #!/usr/bin/python import syslog import os, sys class l

How to identify which interface a broadcast packet comes in on?

2005-09-03 Thread Lincoln Yeoh
Hi, If I have a program listening on 0.0.0.0:(someport) on all interfaces, how do I know which network interface a broadcast packet is coming in on - assuming Linux and _many_ interfaces. And how do I set which interface a frame will leave on, assuming I'm sending a raw frame (no IP address, just