Sys:Syslog
From: Beau E. Cox (beau_at_beaucox.com)
Date: 11/25/03
- Next message: David: "Re: Can I improve the performance of script by using constant?"
- Previous message: Andrew Gaffney: "Re: Using zgrep in PERL?"
- Next in thread: David: "Re: Sys:Syslog"
- Reply: David: "Re: Sys:Syslog"
- Reply: Wiggins D'Anconia: "Re: Sys:Syslog"
- Reply: Drieux: "Re: Sys:Syslog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 Nov 2003 13:32:11 -1000 To: beginners@perl.org
Hi -
I'm having trouble logging to syslog on my Linux (Sorcerer)
machine with perl 8.0.2 installed. This script logs nothing:
#!/usr/bin/perl
use strict;
use warnings;
use Sys::Syslog qw(:DEFAULT setlogsock);
setlogsock('unix');
openlog($0, 'cons,pid', 'user');
syslog('err', 'test error msg');
closelog();
Removing the 'setlogsock' doesn't help; still a noop.
Writing the same thing in C using syslog(3) calls, everthing
works.
???
Aloha => Beau;
- Next message: David: "Re: Can I improve the performance of script by using constant?"
- Previous message: Andrew Gaffney: "Re: Using zgrep in PERL?"
- Next in thread: David: "Re: Sys:Syslog"
- Reply: David: "Re: Sys:Syslog"
- Reply: Wiggins D'Anconia: "Re: Sys:Syslog"
- Reply: Drieux: "Re: Sys:Syslog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]