- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Determinig the environment of a process
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
Discussions
Discussions
Forums
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
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
тАО12-14-2004 03:31 AM
тАО12-14-2004 03:31 AM
on Linux I can do something like
JOB=sleeper sleep 10 & tr \\0 \\012 [1] 5449
JOB=sleeper
to access a process' environment,
thanks to the procfs.
I miss this in HP-UX.
Or is there another way to introspect a process'es environment by HP-UX vanilla tools
(i.e. no tusc or other third-party tool)?
p.s.
Btw, what's the Saxon Genitive for words ending on "s" like process?
Is it process'
or process's
or process'es
?
Solved! Go to Solution.
- Tags:
- environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 03:37 AM
тАО12-14-2004 03:37 AM
SolutionIf yes, there was a utility (some postsde on forums) procstat. That may help you.
As you must be aware, for determining the environment for a process, that will be run, you can do env, set before actually starting it.
And it is processes - I think.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 03:48 AM
тАО12-14-2004 03:48 AM
Re: Determinig the environment of a process
An interesting way to phrase the question!
Either process' or process's would be appropriate. The former used to be exclusivily prefered 20-25 years ago, but the latter is now acceptible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 04:12 AM
тАО12-14-2004 04:12 AM
Re: Determinig the environment of a process
Again it is a third party. (but in the *nix world building and sharing tools is a way of life...)
I vote for- processes
HTH
-- Rod Hills
- Tags:
- lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 04:49 AM
тАО12-14-2004 04:49 AM
Re: Determinig the environment of a process
In this case, the possessive of process is, I think, process'.
The plural form of process is processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 04:52 AM
тАО12-14-2004 04:52 AM
Re: Determinig the environment of a process
For more information on all of this, try this link:
http://www.grammarmudge.cityslide.com/articles/article/426348/4944.htm
**Nothing like an English grammar lesson in the middle of a technical forum**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 08:05 PM
тАО12-14-2004 08:05 PM
Re: Determinig the environment of a process
thanks for pointing me to procstat.
I found a project page at http://freshmeat.net/projects/procstat/
I will install this tool first on a test box to see if it satisfies my needs.
A pitty that HP-UX hasn't an interface similar to /proc on Linux and Solaris.
Wish Dietmar Konermann c/o HP would read this thread.
Then he could also take this topic on the wish list for future HP-UX releases.
He was so graceful to take up my uttered disappointment in another thread about the lack of a loopback filesystem (that lets one mount filesystem/image files) in HP-UX, and officially tag it as request for realization.
Mark,
the first version (viz. process') is I think what I learned in primary school.
This also accords to your epochal classification because that was some 30 years ago.
Rodney,
we have lsof already installed on quite a few boxes (an indispensible tool).
But I haven't found from lsof's manpage any reference or switch to getting a process' environment displayed.
The only references to environment relate to LSOFDEVICECACHE which is an environment variable that could point to an alternative place of a caching file.
Patrick,
I would bet that the term Saxon Genitive isn't familiar to most native English speakers.
Probably it's only an artificial nomenclature that they taught kids in German schools ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2004 03:12 AM
тАО12-15-2004 03:12 AM
Re: Determinig the environment of a process
There is a utility as gcore. This creates
the core image of the running process. May be this will help you. You will have to install two patches to get this.
gcore -p "pid" -o "object_specifier"
PHKL_31876
PHCO_32173
Anil
- Tags:
- gcore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 09:18 PM
тАО12-20-2004 09:18 PM
Re: Determinig the environment of a process
since I had to defer the building of procstat until now I have only yet realized that this is reading its information from a Linux procfs and thus will only run on a Linux kernel :-(
# cat README
Apr 26, 2000
Released under the GPL.
procstat reads statistics from /proc/
what files it has open, what sockets it has open, what address space it is
using, it's cwd, it's root dir, shell environment variables, or give quick,
short statistics about it.
This has only been tested in linux kernel 2.2.x and may or may not work in
earlier or development versions of the kernel. It will only work with linux.
This is the initial release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 11:19 PM
тАО12-20-2004 11:19 PM
Re: Determinig the environment of a process
the functionality you are searching for is not available in vanilla HP-UX. However, since this is an user land issue, You could attach to the running process using a debugger and then have a look at its "environ" array of strings.
BTW, for submitting official enhancement requests you should contact your local HP Response Center. All I did in the previous thread was posting an ID for an *existing* request.
Best regards...
Dietmar.