On Jun 18, 2007, at 12:33 PM, _spitFIRE wrote:

When I don't know where apache is installed, how do I do this? I was asking for a way to write a perl script that would give me the version of apache
installed, if possible!

then why did you specifically ask for a way to do it on the command line without loading mod_perl ?

`httpd -v` is the correct approach.

honestly, your two questions make no sense in context of one another. why don't you tell us what you're trying to accomplish-- in the big picture.

if you're not running something under mod_perl, you're going to have to run a script that figures out which httpd would be called. remember, you can install 1,2,100 different versions of apache in different places. you need to figure out which one would be right ( try using find to get them all, or which for the default for your user's env )

then just call `httpd -v` from a perl script as a shell command, and trap the output. i forget the name of the app that does that... ipc::run ?




// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   CEO/Founder SyndiClick Networks
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     Founder/CTO/CVO
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Reply via email to