Re: How to get environment variables of a specific process?
- From: "robin" <binhualu@xxxxxxxxx>
- Date: 25 Mar 2007 22:32:16 -0700
On Mar 22, 6:05 pm, "robin" <binhu...@xxxxxxxxx> wrote:
On Mar 17, 7:19 am, all mail refused <elvis-85...@xxxxxxxxxxxxxx>
wrote:
On 2007-03-16, binhu...@xxxxxxxxx <binhu...@xxxxxxxxx> wrote:
So how about in HPUX 11i?
I am working on to get the DISPLAY variable of a process.
On systems with a /usr/ucb/ps use -e to show the environment
and -www to show maximum width. I did it today on another OS
to check a set of timezones, but I have no HP-UX here and now.
--
Elvis Notargiacomo master AT barefaced DOT cheekhttp://www.notatla.org.uk/goen/
Hi Guys.
Thanks so much for your reply.
1. On HPUX, i don't think there is such a program as /usr/ucb/ps.
For /usr/bin/ps, -e is to show all the process.
2. I also checked pstat(), i can't find any related topics about
environment variables.
3. Let me get it straight. What i want to do is like this.
There is a server-liked program running on a HPUX workstation, and i
remote connect to it using telnet. Then i want to communicate with the
program by sending some commands to it (internal commands through a
interface tool). But actually the server program only knows about
client using the same DISPLAY as the one under which it was started.
Let's call it real_display:0
So i need to export the DISPLAY to real_display:0 each time when i
want to communicate to the program. Then the best situation is the
program is started locally in the workstation, usually using the ":0"
or "hostname:0" or "localhost:0" as the DISPLAY. But what if the
program is also started by some other remote user? In this situation,
the DISPLAY most probably will be "other_user_hostname:0", which i
can't know.
That's why i post this question here.
Anybody has some idea?
Let me use a more simple sentence for my question:
I am looking for a programming method to get the DISPLAY ENV variable
of a program, which was started by other user (maybe also from other
host).
Thanks in advance!
BR,
Robin
.
- References:
- Prev by Date: Re: PHCO_31609 (PA-RISC)
- Next by Date: Re: PHCO_31609 (PA-RISC)
- Previous by thread: Re: How to get environment variables of a specific process?
- Next by thread: abt make_net_recovery
- Index(es):
Relevant Pages
|