in reply to Perl and syslog

A syslog message is typically only one line (single CR) long. If a message needs to span multiple lines to avoid having a 500+ character line width, it's broken into separate messages.

The easy way to do this with what you have is:

my @msgs = ( "======== Start =========", $stuff, $morestuff, "======== End ==========" ); openlog( 'status', 'ndelay', 'daemon' ); map { syslog( 'warning', '%s', $_ ) } @msgs; closelog();

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
It's not what you know, but knowing how to find it if you don't know that's important

Replies are listed 'Best First'.
Re: Re: Perl and syslog
by kloud (Initiate) on Sep 18, 2001 at 17:52 UTC
    This worked thanks,
    It was my understanding that the previous syslog requirement
    of one line messages had been removed, but then again I might well
    be wishing.


    Thanks for our help
    Kloud