ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm writing a script ATM, which will print out the Perl and Apache version. Now, getting the Perl version is simple - $]
However, the Apache version is prooving much harder.
I'm guessing something like:
`/usr/bin/httpd -v`
...but this needs to work on a LOT of servers (mainly UNIX, but possibly NT servers too).
Anyone got any suggestions?
TIA!
Andy
I'm writing a script ATM, which will print out the Perl and Apache version. Now, getting the Perl version is simple - $]
However, the Apache version is prooving much harder.
I'm guessing something like:
`/usr/bin/httpd -v`
...but this needs to work on a LOT of servers (mainly UNIX, but possibly NT servers too).
Anyone got any suggestions?
TIA!
Andy
Back to
Seekers of Perl Wisdom