Re: How to get environment variables of a specific process?



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

.



Relevant Pages

  • Re: PC as USB device
    ... just use USB to communicate with your board. ... The virtual console would run on the PC and act as display ... device for the target board.the communication I want is through USB ... if I keep my PC as host and the target board as device. ...
    (microsoft.public.development.device.drivers)
  • Re: Why CHM?
    ... Dean Hill wrote: ... very nice if you want to communicate with someone else. ... I think both you and I have misunderstood what Rudy was saying. ... I get it now, he's saying "it can, for instance, display the URL of the ...
    (borland.public.delphi.non-technical)
  • Re: How to get environment variables of a specific process?
    ... I am working on to get the DISPLAY variable of a process. ... Then i want to communicate with the ... program is also started by some other remote user? ...
    (comp.sys.hp.hpux)
  • Re: Does anyone have experience interfacing a LCD display module to a cFP unit?
    ... In first step develop a program on PC which will communicate with LCD device by reffering protocol guide of display device.This program will allow you to display whatever information you want to disply on LCD device. ...
    (comp.lang.labview)
  • network problems preventing communication messages
    ... >I use a program where I can send information for a wite ... >site to display. ... >knowledgeable enough to fix them so I can continue ... >communicate with this site. ...
    (microsoft.public.security)