cancel
Showing results for 
Search instead for 
Did you mean: 

Environment Variables

SOLVED
Go to solution
Narendra Uttekar
Regular Advisor

Environment Variables

Hi,
When i login with user id on hp-ux 11i v1 system. And when i use command env to check what are the Environment Variables settings it gives no output and also tried giving pwd command but still no output it displays.
What could be the problem not display the pwd and env output. It is working with other user on same system.
6 REPLIES
SoorajCleris
Honored Contributor

Re: Environment Variables

which is the shell ?
check the login profile scripts are proper.
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Nido
Trusted Contributor

Re: Environment Variables

Narendra,

Check the contents of $HOME/.profile for the specified user.
After logged into the system :
run : $ echo $SHELL
Check the shell startup files also if any eg. .kshrd or .cshrc.

Cheers!!
" Let Villagers Be Happy!! "
V. Nyga
Honored Contributor

Re: Environment Variables

Hi,

also check in /etc/passwd which shell and homedir is set.
Homedir available?

Volkmar
*** Say 'Thanks' with Kudos ***
Jitesh purohit_1
Regular Advisor

Re: Environment Variables

Hi

Check the below

1) What was the shell defined , when your userid was created, you can do either

grep -i /etc/passwd

If this does not work, Then contact the sysadmin

Thanks
Jitesh
Dennis Handly
Acclaimed Contributor
Solution

Re: Environment Variables

Have you tried using absolute paths?
/usr/bin/env
/usr/bin/pwd
Narendra Uttekar
Regular Advisor

Re: Environment Variables

Hi,
Thanks a lot Dennis for the solution.