Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Get home dir from shell

by Corion (Pope)
on Apr 03, 2013 at 12:57 UTC ( #1026852=note: print w/ replies, xml ) Need Help??


in reply to Get home dir from shell

If $ENV{HOME} is not set, it won't be set in the shell either.

Most likely, your login environment is not set up because your script is running as the CGI user, or if it is running as your user, the login / .profile scripts have not been run.

See Get default login environment and the replies for how to set up the environment from a script.


Comment on Re: Get home dir from shell
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026852]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-28 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (187 votes), past polls