- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- export UNIX95=XPG4 ???
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
11-02-2004 11:50 AM
11-02-2004 11:50 AM
export UNIX95=XPG4 ???
Pls kindly explain it?
Thanks
Eric
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 12:23 PM
11-02-2004 12:23 PM
Re: export UNIX95=XPG4 ???
UNIX95=Unix 95 conformance
XPG4=X/Open's Portability Guide Issue 4
Have a look here:
http://ou800doc.caldera.com/en/DIFFS/UNIX95_Conformance.html
One of the best examples of this is utilising the 'ps' command differently.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 12:23 PM
11-02-2004 12:23 PM
Re: export UNIX95=XPG4 ???
XPG (X/Open POSIX GROUP). There is an XPG2,XPG3,XPG4 - all standards to make the various flavor of UNIX.
A UNIX95 branded product is built from a number of components and includes XPG4 system calls, POSIX callable interfaces, and the ISO C library among other things. HP-UX 10.20 and later are UNIX95 branded.
The UNIX95 variable (when set) simply alters the way the 'ps' command functions. Setting the environmental variable is an alternate set of options and formatting. Its setting specifies the XPG4 behavior for this command. When UNIX95 is defined and exported XPG4 behavior is requested. This alters and augments the output and features of some commands.
In the case of ps among other things it adds the -o format option.
Look at the man pages for more details.
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 12:25 PM
11-02-2004 12:25 PM
Re: export UNIX95=XPG4 ???
XPG (X/Open Posix Group) is a group that is responsible for setting standards trying to unify different flavors of UNIX atleast from a user's perspective. XPG4 is one of the versions of the standards. When the environment is set, the commands/tools will behave with XPG4 standard providing more (better) outputs. One of the commands that is frequently used is 'ps'. For ex., following XPG4 behaviour of ps can eliminate the headaches presented by 'grep'
UNIX95= ps -e -C "my_process"
In 'man ps' you will see commands available for XPG4 environment only.
For history on UNIX, refer to the following URL
http://www.unix.org/what_is_unix.html
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 02:30 PM
11-02-2004 02:30 PM
Re: export UNIX95=XPG4 ???
In other words, don't export it. Instead, use it for a specific command such as ps. When you define UNIX95 on the command line, the process 'sees' the variable and enables the changes defined in the man page for ps, but the variable disappears after the command is finished:
ps -efH
UNIX95= ps -efH
In the first example, ps produces an error (-H is not defined), but the second form temporarily defines UNIX95 and now -H is a valid option (to show program hierarchies). UNIX95= and UNIX95=XPG4 (or any other value) is all that is needed. UNIX95= defines the variable with a null value, but the XPG4 rules don't care about the value given to UNIX95, just the existence of the variable.
Bill Hassell, sysadmin