hello
In a perl script for a cronjob, there is a function:
This function is called from other function. I think that the function above should write logs to syslog file. However, it tries to write logs to /dev/consolog. As /dev/consolog is own by root, so it cannot write logs to this file. Therefore, it throws an error.
My question is how I can write these logs to syslog file. I am not good in perl and I am not the person who wrote this script, so please have some suggestions
Many thanks
In a perl script for a cronjob, there is a function:
Code:
sub _write_sys_log {
my $seft = shift;
my $level = shift;
my $string = shift;
syslog($level, '%s', "$string");
}
My question is how I can write these logs to syslog file. I am not good in perl and I am not the person who wrote this script, so please have some suggestions
Many thanks
Comment