Possible to get apache2 environment variable from command line?
Solution 1:
if it's in Apache's environment, you have to get it from Apache. In other words, a job running under the Apache process should be able to access and return the value - in other words a CGI script or other dynamic web content.
For example with PHP you might get it by writing the following to lynx.php in the webroot then browsing to http://server/lynx.php (hypothetical config...)
<?php
print(getenv('APACHE_LYNX'));
?>
this specific method would need to be adapted to your web server config, supported languages, etc.