slandry has asked for the wisdom of the Perl Monks concerning the following question:
my $MYMESSAGE = "My string"; my $DATE=`date +%Y-%m-%dT%H:%M:%S%:z`; chomp $DATE; $LOG_HDR = "<14>1 $DATE localhost scrubdisk $$ scrubdisk - "; open (LOG, '>>', '/dev/tcp/localhost/601'); print LOG "$LOG_HDR $MYMESSAGE"; close (LOG);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Write to rsyslog
by hippo (Archbishop) on May 16, 2024 at 08:06 UTC | |
Re: Write to rsyslog
by NERDVANA (Priest) on May 16, 2024 at 17:12 UTC | |
Re: Write to rsyslog
by GrandFather (Saint) on May 16, 2024 at 03:07 UTC | |
Re: Write to rsyslog
by eyepopslikeamosquito (Archbishop) on May 16, 2024 at 05:57 UTC | |
by LanX (Saint) on May 16, 2024 at 08:29 UTC | |
by eyepopslikeamosquito (Archbishop) on May 16, 2024 at 10:26 UTC | |
by LanX (Saint) on May 16, 2024 at 11:33 UTC | |
Re: Write to rsyslog
by LanX (Saint) on May 16, 2024 at 01:00 UTC |