Hi Mike, On Fri, Nov 21, 2003 at 03:27:16AM +0000, Mike MacCana wrote: > According to the syslog man page, I should be able to use a pipe > character to send a log to a program. Adding a line like: > > user.notice |exec wall > WORKDAMNYOU > > to /etc/syslog.conf, restarting syslog, then running "logger whatever" > (which sends messages from the user facility with a priority of notice) > just doesn't seem to work. > > Logging to a file from this facility / priority does though. > > Anyone know what I'm doing wrong?
Yep, misreading the man page. :-) A pipe can be used to send the output to a named pipe/fifo, not direct to an executable. You then can have a program reading from the fifo and doing whatever you want, of course. Cheers, Gavin -- Open Fusion P/L - Open Source Business Solutions [ Linux - Perl - Apache ] ph: 02 9875 5032 fax: 02 9875 4317 web: http://www.openfusion.com.au mob: 0403 171712 - Fashion is a variable, but style is a constant - Programming Perl -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
