Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -wT
use Sys::Syslog;
$SCRIPT_ID = "testMod.cgi(000)";
print "Content-Type: text/html\n\n";
&openlog($ProcName,"pid,cons,nowait", "local0");
&syslog('local3.info', "$SCRIPT_ID-1 Execution begun.");
&closelog();
print "HELLO";
When I run this script I get the 'document contained no data error' and the following message in the error log:
'Cannot get host name of local machine at /usr/lib/perl5/5.00503/Sys/Syslog.pm
line 248'
I tracked this down and found that the error is actually being generated from Sys::Hostname.
Everything works fine if I remove the -T flag.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with Sys::Syslog and taint
by mdillon (Priest) on May 16, 2000 at 00:12 UTC | |
|
Re: Problems with Sys::Syslog and taint
by guice (Scribe) on May 16, 2000 at 01:42 UTC | |
by mdillon (Priest) on May 16, 2000 at 02:01 UTC | |
by guice (Scribe) on May 16, 2000 at 19:57 UTC | |
|
Re: Problems with Sys::Syslog and taint
by lhoward (Vicar) on May 16, 2000 at 00:17 UTC |