MonkeyMonk has asked for the wisdom of the Perl Monks concerning the following question:
My threaded Perl program is included in the run level scripts. The full path of the program is mentioned like so in /etc/rc3.d/SXXnetmon :
/usr/local/sbin/authdev.pl &
The threaded Perl program redirects all STDOUT and STDIN to a log file with these commands:
# Opening log file. # Redirecting OUTPUT and ERR to log file for all threads open OUTPUT, '>>', "/usr/local/xxx/log/lease.log" or die $!; open ERROR, '>>', "/usr/local/xxx/log/lease.log" or die $!; STDOUT->fdopen( \*OUTPUT, 'w' ) or die $!; STDERR->fdopen( \*ERROR, 'w' ) or die $!;
My question is:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System runlevel scripts and STDOUT
by Illuminatus (Curate) on Oct 13, 2010 at 14:37 UTC | |
|
Re: System runlevel scripts and STDOUT
by hbm (Hermit) on Oct 13, 2010 at 15:17 UTC |