[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3209.0. "Other process has SET DISPLAY?" by HKOVC::TERENCE (From Middlesex, UWO) Tue Aug 14 1990 22:16

 
    Can you help me with an answer for the following question? Is there a way
    I can see that another process has set display to another machine? This is
    for VMS 5.3. I would like to be able to display it like the Ultrix who
    command does.

    Thanx for any help

    -Terry
T.RTitleUserPersonal
Name
DateLines
3209.1Try thisHGABSS::SAMMYKAMSammy Kam, Asia EngineeringTue Aug 14 1990 23:366
    $ mc ncp
    ncp> sh known link
    
    and look for 'X$X0' in 'Remote user' field.
    
    
3209.2That's not itHKOVC::TERENCEFrom Middlesex, UWOWed Aug 15 1990 02:5614
      <<< Note 3209.1 by HGABSS::SAMMYKAM "Sammy Kam, Asia Engineering" >>>
                                 -< Try this >-

#    $ mc ncp
#    ncp> sh known link
#    
#    and look for 'X$X0' in 'Remote user' field.
    
     It works only if you have an active link to that remote node. What I want
     is, in VAXC, get the WSA device that a particular process has SET DISPLAY
     to, and then, I can retrieve the node/server/screen information from that
     device.

     -Terry
3209.3No good ideas....PEACHS::BELDINWed Aug 15 1990 10:458
	Well, I don't know if this is valid, but you could check the
	logical (in another process's job table? Hmmm) to see if the
	device it points to is owned by SYSTEM and then assume that
	means local... Ughh... Just a thought... Sounds like a good 
	question...

	rb
3209.4show display fooVINO::MCARLETONReality; what a concept!Wed Aug 15 1990 15:0510
    
    If you could get the value of the logical DECW$DISPLAY from the other
    job tables (some privs needed) you could define a logical name to point
    to the device and use SHOW DISPLAY:
    
    $SHOW LOG DECW$DISPLAY /TABLE=LNM$JOB_*
       "DECW$DISPLAY" = "WSA11:" (LNM$JOB_8xxxxxx)
    $DEFINE FOO "_WSA11"
    $SHOW DISPLAY FOO
    
3209.5you're supposed to be able to do thisVMSSG::LEMBREEJust do it.Wed Aug 15 1990 16:395
	I don't know the exact details, but you should be able to do sense
mode QIOs to the WSA device to get the information you want.  The WSA device's
big goal in life is to give you the information you're asking for, it just
seems that you have to ask the right way.

3209.6HKOVC::TERENCEFrom Middlesex, UWOWed Aug 15 1990 22:0915
               <<< Note 3209.5 by VMSSG::LEMBREE "Just do it." >>>
                   -< you're supposed to be able to do this >-

# 	I don't know the exact details, but you should be able to do sense
# mode QIOs to the WSA device to get the information you want.  The WSA device's
# big goal in life is to give you the information you're asking for, it just
# seems that you have to ask the right way.

    I know how to use SYS$QIO + IO$_SENSEMODE|IO$M_WS_DISPLAY to get the
    information from a WSA device. Is it true that peeking into other process'
    logical name table is the only way to find out the SET DISPLAY information
    of other process? Other than that, any supported way?

    -Terry

3209.7VMSSG::LEMBREEJust do it.Thu Aug 16 1990 11:558
	I think that the logical DECW$DISPLAY is the only way the displaying
process _itself_ keeps track of where to display.  I don't think that this
information is kept anywhere else.
	Be careful though, the WSA device and the DECW$DISPLAY logical only
come into play when the display is defaulted.  Clients are free to specify
a specific display without implicating WSA devices or the logical.  In
addition, clients may have multiple displays open at a time, and I don't
think that there's any external way of telling who's displaying where.