- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What is UNIX95 in these commands?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
03-19-2006 11:46 PM
03-19-2006 11:46 PM
It seems stupid, but I am new to Hp-UX. You can understand.
# UNIX95=1 ps -o pid=
20136
29581
# UNIX95=1 ps -o pid
PID
20136
29584
Why variable (may or maynot be variable) UNIX95 is involned in these commands?
What does UNIX95=1 actually mean? What is that '1' for?
Thanks & regards.
Prasad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2006 11:51 PM - last edited on 12-20-2023 02:31 AM by Sunitha_Mod
03-19-2006 11:51 PM - last edited on 12-20-2023 02:31 AM by Sunitha_Mod
Re: What is UNIX95 in these commands?
Hi Prasad,
One stop solution: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=4177
-Arun
[Moderator edit: The above link is no longer valid.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2006 11:52 PM
03-19-2006 11:52 PM
Re: What is UNIX95 in these commands?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2006 11:53 PM
03-19-2006 11:53 PM
Re: What is UNIX95 in these commands?
Setting UNIX95 enables features of ps not available without it. The 1 activates the variable, which in turn activates the features.
The -h parameter which indents and shows process parent/child hierarchy is an example.
Don't permanently set it. UNIX95 being set makes SD/UX tools fail checksums.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2006 11:54 PM
03-19-2006 11:54 PM
Re: What is UNIX95 in these commands?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2006 11:54 PM
03-19-2006 11:54 PM
Re: What is UNIX95 in these commands?
Some commands HP won't change because of the standards they have committed to or because of backwards compatability, but there are still some useful stuff that you can get from the UNIX95 version.
full command name on ps is one of those.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2006 11:55 PM - last edited on 12-20-2023 02:28 AM by Sunitha_Mod
03-19-2006 11:55 PM - last edited on 12-20-2023 02:28 AM by Sunitha_Mod
Re: What is UNIX95 in these commands?
Prasad,
this thread cleared it up for me.http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943707
[Moderator edit: The above link is no longer valid.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2006 11:59 PM - last edited on 12-20-2023 02:32 AM by Sunitha_Mod
03-19-2006 11:59 PM - last edited on 12-20-2023 02:32 AM by Sunitha_Mod
SolutionHi Prasad:
UNIX95 or the XPG4 behavior influences the standard in which certain commands behave.
The idea expressed in your example is to set the behavior *only* for the duration of the command line. A shorter form is this:
# UNIX95= ps -o pid
That is, there is a space after the equal sign but nothing else before the command.
The '-o' switch of 'ps' is applicable only under UNIX95 behavior. The arguments that follow tell what is to be reported. In your example it is only the process ids of your session.
You could add the arguments of your session's processes by doing:
# UNIX95= ps -o pid= -o args=
The equal sign after the "pid" or "arg" argument of 'ps' indicates that no heading should be supplied by 'ps'. This, and more, is described in the man pages:http://www.docs.hp.com/en/B2355-60127/ps.1.html
Do not set UNIX95 except at a commandline as noted above. You may find different behavior for commands that you don't normally expect. 'cp' is one of them.
Regards!
...JRF...
[Moderator edit: Removed the broken link. Please refer to https://support.hpe.com/]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 12:08 AM
03-20-2006 12:08 AM
Re: What is UNIX95 in these commands?
Some good links for better undertanding,
http://en.wikipedia.org/wiki/UNIX_95
http://www.unix.org/what_is_unix/single_unix_specification.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 02:28 AM
03-20-2006 02:28 AM
Re: What is UNIX95 in these commands?
Thanks again.
Prasad