Re: Sys::Syslog - RESOLVED, sorta...

2003-11-24 Thread Beau E. Cox
Hi - Switched to Unix::Syslog - #!/usr/bin/perl use strict; use warnings; use Unix::Syslog qw(:macros); # Syslog macros use Unix::Syslog qw(:subs);# Syslog functions openlog $0, LOG_CONS | LOG_PID, LOG_USER; syslog LOG_ERR, 'test error msg'; closelog; Works fine. I have no idea why Sys

Sys::Syslog

2002-04-29 Thread Rus Foster
Hi all, I've wonder if you get help me with a problem I'm having. ATM I've managed to log to my local syslog using the following code #!/usr/sbin/perl use Sys::Syslog qw(); $user = $ENV{'USER'}; openlog($0,'','user'); syslog('info', $user logged this comment); closelog; What I would however

Re: Sys::Syslog

2002-04-29 Thread drieux
On Monday, April 29, 2002, at 06:06 , Rus Foster wrote: [..] What I would however like to do is log to a remote machine without having to put something like *.info@loghost in my /etc/syslogd.conf Is this possible? Looking over the man page it doesn't seem so but I might be