cloudbuster has asked for the wisdom of the Perl Monks concerning the following question:
I've been trying to test simple syslog output on a couple different os's and perl versions, ranging from perl 5.6.1 under Redhat 7.3 to perl 5.8.1 under Mac OS X and am having a problem with not getting any syslog output when the logsock is set to inet (which is the default). If I set it to use unix sockets, it works fine. Here's the very short test code. Any clues appreciated:
#!/usr/bin/perl
use Sys::Syslog qw(:DEFAULT setlogsock);
setlogsock('inet'); # If you set this to 'unix' it works fine, if you set it to 'inet' it fails
openlog('test','cons,pid,ndelay','mail');
syslog('warning','this is a syslog test');