Operating System - HP-UX
1836617 Members
2078 Online
110102 Solutions
New Discussion

Re: Trying to determine which (CDE) workspace given a PID

 
Boyd Kodama
Frequent Advisor

Trying to determine which (CDE) workspace given a PID

HP-UX 10.20 (series 700) and CDE

I am trying to write a program (or script) such that an xterm will display in the same workspace of another xterm given its PID. Is there a way to determine which
workspace that may be from that PID?

thanks,

Boyd
Without Mondays, there weren't be any Fridays
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Trying to determine which (CDE) workspace given a PID

Hi Boyd:

You could use 'who -uR' to return a list of logged-on users with there associated pid and hostname. You can match that which you need.

...JRF...
Alex Glennie
Honored Contributor

Re: Trying to determine which (CDE) workspace given a PID

I have a 10.20 binary that switches workspaces when given the workspace name as a command line option ..... I suspect this maybe of some use ? What's your email address ?

ps I'm not sure if you can achieve what you are after relying on PIDs as this will relate to the Xservers DISPLAY but is not workspace-name specific. ..... I could be wrong though ;)
Boyd Kodama
Frequent Advisor

Re: Trying to determine which (CDE) workspace given a PID

boyd.s.kodama@lmco.com

thanks
Without Mondays, there weren't be any Fridays
Gregory Fruth
Esteemed Contributor

Re: Trying to determine which (CDE) workspace given a PID

See my response over in the workstations (hp visualize)
forum.