sumandas has asked for the wisdom of the Perl Monks concerning the following question:
i have installed Sys::Syslog,but the log files is not created actually i want a error msg if i not give ant=y argument in it,please help me what changes i have to make in code?
use Sys::Syslog; $filename=$ARGV[0]; $name="system.log"; openlog($name, "ndelay,pid", "local0"); if (!defined $ARGV[0]) { syslog("info", "$filename is not there"); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: not creating log files
by karlgoethebier (Abbot) on Feb 03, 2014 at 14:41 UTC | |
by sumandas (Initiate) on Feb 03, 2014 at 14:49 UTC | |
by karlgoethebier (Abbot) on Feb 03, 2014 at 15:13 UTC | |
by marto (Cardinal) on Feb 03, 2014 at 14:50 UTC |