T
Thomas Glanzmann
Hello together,
I try to use a unix/socket syslog mechanism on Solaris 9 together with
perl-5.8.2 and get the following:
(faui04b) [~] cat syslog.pl
#!/opt/csw/bin/perl -w
use strict;
use Carp; $SIG{__DIE__} = \&Carp::confess;
use Sys::Syslog qw
DEFAULT setlogsock); # default set, plus setlogsock
setlogsock('unix');
openlog('spamd', 'cons,pid', 'mail');
syslog('debug', "test application");
closelog();
(faui04b) [~] ./syslog.pl
unix dgram connect: Socket operation on non-socket at ./syslog.pl line 9
no connection to syslog available at ./syslog.pl line 9
Sys::Syslog::connect called at /opt/csw/lib/perl/5.8.2/Sys/Syslog.pm line 293
Sys::Syslog::syslog('debug','test application') called at ./syslog.pl line 9
Any ideas how I can fix the issue?
Thomas
I try to use a unix/socket syslog mechanism on Solaris 9 together with
perl-5.8.2 and get the following:
(faui04b) [~] cat syslog.pl
#!/opt/csw/bin/perl -w
use strict;
use Carp; $SIG{__DIE__} = \&Carp::confess;
use Sys::Syslog qw
setlogsock('unix');
openlog('spamd', 'cons,pid', 'mail');
syslog('debug', "test application");
closelog();
(faui04b) [~] ./syslog.pl
unix dgram connect: Socket operation on non-socket at ./syslog.pl line 9
no connection to syslog available at ./syslog.pl line 9
Sys::Syslog::connect called at /opt/csw/lib/perl/5.8.2/Sys/Syslog.pm line 293
Sys::Syslog::syslog('debug','test application') called at ./syslog.pl line 9
Any ideas how I can fix the issue?
Thomas