DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28815>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28815 ErrorLog piped command doesn't handle redirections Summary: ErrorLog piped command doesn't handle redirections Product: Apache httpd-2.0 Version: 2.0.49 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] In apache 1.3 if you use a command as such: ErrorLog "|command >> filename" It will work, as there is an implicit passthrough to a shell. In 2.0.49, this behavior is still documented, but it doesn't appear to work. Replacing it with: ErrorLog "|/bin/sh -c \"command >> filename\"" does work. On looking at the code, it appears that there is an APR_SHELLCMD procattr, which must be set upon calling apr_create_proc if you want it to pass the child process through /bin/sh. This is not set in the code that opens the error log child process. I'm 100% certain that there is a bug - The question is whether it is in the documentation or in the core. I leave it to you to make that determination. Thanks. --Russell --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
