Operating System - HP-UX
1747980 Members
4365 Online
108756 Solutions
New Discussion юеВ

Re: PATH Variable settings

 
SOLVED
Go to solution
Narendra Uttekar
Regular Advisor

PATH Variable settings

Hi,
When i want to check the exported enviromental settings i need to give /usr/bin/env , /usr/bin/pwd. But it won't display anything when used env or pwd. But when i check the /usr/bin is in PATH vaibale still why it doesn't work?

PATH=/oracle/TCQ/102_64/bin:.:/home/tcqadm:/usr/sap/TCQ/SYS/exe/run:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/resmon/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/pd/bin:/opt/gnome/bin:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/usr/sbin/diag/contrib:/opt/ignite/bin:/opt/hpsmh/bin:/opt/perl/bin:/opt/ssh/bin:/opt/java1.4/jre/bin:/opt/spb/bin:/opt/gwlm/bin:/opt/omni/bin:/opt/hpnpl//bin:/sbin/fs/vxfs3.5/bin

Thanks,
Narendra
17 REPLIES 17
Torsten.
Acclaimed Contributor

Re: PATH Variable settings

If you need /usr/bin/env in PATH, you must configure it.

Just /usr/bin/ isn't enough.

If this would be enough, PATH have to be set to "/" only, but this doesn't work ...

;-))

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
SoorajCleris
Honored Contributor

Re: PATH Variable settings

Hi Narendra,

Is this same for users?

Try whereis command .

Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
V. Nyga
Honored Contributor
Solution

Re: PATH Variable settings

Hi,

is this from user env? 'env|grep PATH' ?
Strange - looks ok.

@Thorsten - /usr/bin should work to find the commands /usr/bin/env and /usr/bin/pwd ...

Narendra, check with 'which env' and 'whereis env'.

But I would not place /oracle, . and /usr/sap at front of your PATH - there should be the os bin-directories /usr/sbin:/usr/bin.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Peter Nikitka
Honored Contributor

Re: PATH Variable settings

Hi,

which shell do you use?
For Bourne-like shells check the results of the builtin commands
export

For CSH-like shells try
setenv

Do you get results (don't supply a parameter to any of the commands)?

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Dennis Handly
Acclaimed Contributor

Re: PATH Variable settings

What do these show?
echo $SHELL
whence -v env
whence -v pwd

But you should be able to use the real shell's builtin pwd.
Jitesh purohit_1
Regular Advisor

Re: PATH Variable settings

Hi Narendra ,

what is the userid from you are loggin in server, And did you checked the shell for the user

Thanks
Jitesh
sujit kumar singh
Honored Contributor

Re: PATH Variable settings

hi


Just wanted to know,

PATH=/oracle/TCQ/102_64/bin:.:/home/tcqadm


is that . between : and : intentionally placesd, what is the purpose of that?
regards
sujit
Torsten.
Acclaimed Contributor

Re: PATH Variable settings

Ooops, I was thinking about pathes and directories ... but these commands are shell built-ins.

What shell are you using?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: PATH Variable settings

Try:

#whereis pwd
pwd: /usr/bin/pwd /usr/share/man/man1.Z/pwd.1
#type pwd
pwd is a shell builtin
#whence pwd
pwd

#whereis env
env: /usr/bin/env /usr/share/man/man1.Z/env.1
#type env
env is /usr/bin/env
#whence env
/usr/bin/env

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!