kloud has asked for the wisdom of the Perl Monks concerning the following question:
chomping $mesg does not help, the real problem is that the#!/usr/local/bin/perl -w use strict; use Sys::Syslog; my $date = `date '+%d%m%Y:%H%M%S'`; my $mesg = "======== Start =======\n"; $mesg .= "TIME :\t $date\n"; $mesg .= "\n"; $mesg .= "========The end==========\n"; print $mesg; openlog( 'status', 'ndelay', 'daemon' ); syslog('warning', '%s', $mesg); closelog();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and syslog
by Masem (Monsignor) on Sep 18, 2001 at 17:21 UTC | |
by kloud (Initiate) on Sep 18, 2001 at 17:52 UTC | |
|
Re: Perl and syslog
by MZSanford (Curate) on Sep 18, 2001 at 17:23 UTC | |
by kloud (Initiate) on Sep 18, 2001 at 17:44 UTC |