Re: Determining display device for a process
- From: Fred Bach <bach@xxxxxxxxx>
- Date: Mon, 16 Jun 2008 17:20:56 -0700
Jan-Erik Söderholm wrote:
Bobby wrote:I have a need to determine the device that an x-application is
"displaying" to. The reason is that an x-application will be
automatically loaded at user login, but should only be started once
per display (i.e., once per x-server display). The logical decw
$display points to the device, but how (can?) this value be retrieved
for a specific process? I didn't see anything in the f$getjpi()
function, but maybe I missed something. The same user account is used
for multiple stations, so looking at the UIC for the owner of a
process won't work. Any ideas would be appreciated.
All logical name tables (incl the LNM$JOBxxxx tables) are
available to F$TRNLNM, if you have read access to them.
So one should be able to scan through the LNM$JOBxxx
tables for a specific "display".
See :
SHOW LOG /STRU
SHOW LOG /TABLE=LNM$SYSTEM_DIRECTORY
SHOW LOG /TABLE=LNM$SYSTEM_DIRECTORY/DESCENDANTS
Ex:
SHOW LOG /DESCENDANTS/TABLE=LNM$SYSTEM_DIRECTORY DECW$DISPLAY
will show all currently defined DEC-Windows displays
for all processes on the system.
Output to a file and search for your actual device, or
make something up with PIPE or whatever...
Regards,
Jan-Erik.
Jan-Erik,
This looks pretty interesting! Could you expand on this technique a little, please? One area of difficulty here is
easily determining the graphics output screen for x-applications
when we do a SET HOST from an X-window Decterm. Naturally we
want the x-display for the session on the remote host to default
to the device that was serving the x-decterm window from which
we did the Set Host.
I wonder if you, or anyone on cov, could walk us through what to do.
Thanks.
. fred bach . music at triumf dot c a
.
- Follow-Ups:
- Re: Determining display device for a process
- From: Jan-Erik Söderholm
- RE: Determining display device for a process
- From: Peter Weaver
- Re: Determining display device for a process
- References:
- Determining display device for a process
- From: Bobby
- Re: Determining display device for a process
- From: Jan-Erik Söderholm
- Determining display device for a process
- Prev by Date: Console text and >>> prompt on DS15 disappeared...
- Next by Date: Re: Console text and >>> prompt on DS15 disappeared...
- Previous by thread: Re: Determining display device for a process
- Next by thread: RE: Determining display device for a process
- Index(es):
Relevant Pages
|