in reply to Write to rsyslog

Why don't you write a subroutine syslog for this, and call it with syslog("MY MESSAGE") ?

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery