markjugg has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a CGI script to handle "500" server errors with Apache. As part of this, I'd like to show the last few lines from the Apache error log.
I noticed the error log location is not in the CGI environment (at least not in the %ENV hash). Is there a way I can dynamically figure out where the error log is? (better yet, do you have a pointer to an example of this?)
For those concerned about security, this will be used by developers only, not by the public. :) Thanks!
-mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading the last fews lines of the Apache error log
by Fastolfe (Vicar) on Feb 06, 2001 at 02:28 UTC | |
|
Re: Reading the last fews lines of the Apache error log
by arturo (Vicar) on Feb 06, 2001 at 02:28 UTC | |
|
(jeffa) Re: Reading the last fews lines of the Apache error log
by jeffa (Bishop) on Feb 06, 2001 at 02:33 UTC | |
|
(crazyinsomniac) Re: Reading the last fews lines of the Apache error log
by crazyinsomniac (Prior) on Feb 06, 2001 at 02:44 UTC | |
by Kickstart (Pilgrim) on Feb 06, 2001 at 04:50 UTC | |
|
Re: Reading the last fews lines of the Apache error log
by Kickstart (Pilgrim) on Feb 06, 2001 at 04:41 UTC | |
|
Re: Reading the last fews lines of the Apache error log
by dws (Chancellor) on Feb 06, 2001 at 02:57 UTC | |
|
Re: Reading the last fews lines of the Apache error log
by ok (Beadle) on Feb 06, 2001 at 02:31 UTC |