- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Stange situation
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 04:53 AM
05-22-2003 04:53 AM
Stange situation
I have a strange problem.
I have two identical system.
There are on eny system a user call pippo.
When I connect to system A
and edit
type ksh I see like output
ksh is /bin/ksh
on system B I see:
ksh is /usr/bin/ksh
If I execute this command like root I see:
ksh is /usr/bin/ksh.
I have superdome with 11i.
Why there is this different.
Please help me.
Thanks
Filo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 04:56 AM
05-22-2003 04:56 AM
Re: Stange situation
Do an
echo $PATH
on both systems to check.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 05:05 AM
05-22-2003 05:05 AM
Re: Stange situation
- /etc/PATH
- /etc/profile
- yourhome/.profile
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 05:57 AM
05-22-2003 05:57 AM
Re: Stange situation
/etc/PATH
on both boxes.
And see that no PATH statement is in /etc/profile and ~./.profile
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 06:06 AM
05-22-2003 06:06 AM
Re: Stange situation
I see output of echo $PATH and on one of the two there is :/bin .
The .profile files are equal, the etc/PATH = , How can find where is set the PATH variable, if possible?
Thanks
Filo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 06:13 AM
05-22-2003 06:13 AM
Re: Stange situation
Have you checked /etc/profile?
HTH, Vicente.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 06:15 AM
05-22-2003 06:15 AM
Re: Stange situation
If you examine '/etc/profile' you will see that it builds the PATH variable from the global '/etc/PATH' specification.
The MANPATH is build in similar fashion.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 06:20 AM
05-22-2003 06:20 AM
Re: Stange situation
Yes I check /etc/profile and there isn't different, there isn't :/bin.
Thanks for all your help
filo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 06:33 AM
05-22-2003 06:33 AM
Re: Stange situation
NEVER USE /bin/ksh, /bin/sh, /bin/csh!
BSD systems store base shells "most" of the time in /bin. This has been a practice in AIX and Solaris for quite some time. This continues with Linux.
System V stores base shells in /usr/bin. This is the case with HP-UX, Irix, SCO, and of course some Linux.
BSD sytems try very hard to conform to some of the good habits of System V. Hence, most shells if they exist now in /bin are linked to /usr/bin. Others (Solaris 9) have actually moved shells to the SysV location and linked back to the old BSD location.
Roots shell should never be changed or modified, however for best practices follow this rule.
When scripting, define the shell for any user driven script as #!/usr/bin/$SHELL. In passwd files, define all paths as /usr/bin/$SHELL. (Again DO NOT change root's shell).
Following these 2 simple rules will help you to survive in a multi-platform environment. Path for "which ksh" returning /bin or /usr/bin means alot less than something not working because it is not there.
Have fun!
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 06:44 AM
05-22-2003 06:44 AM
Re: Stange situation
In the .profile there is a command to execute another script, an into this script I view the different.
Filo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 06:44 AM
05-22-2003 06:44 AM
Re: Stange situation
Did you look at .dtprofile if you log on using CDE ?
Regards