VMS Help SET, DISPLAY, Examples *Conan The Librarian (sorry for the slow response - running on an old VAX) |
1.$ SHOW DISPLAY Device: WSA1: [super] Node: 0 Transport: LOCAL Server: 0 Screen: 0 $ SET DISPLAY/CREATE/NODE=ZEPHYR/EXECUTIVE_MODE $ SHOW DISPLAY Device: WSA2: [exec] Node: ZEPHYR Transport: DECNET Server: 0 Screen: 0 $ SPAWN/NOWAIT/INPUT=NL: RUN SYS$SYSTEM:DECW$CLOCK $ SET DISPLAY/DELETE $ SHOW DISPLAY Device: WSA1: [super] Node: 0 Transport: LOCAL Server: 0 Screen: 0 In this example, you are logged in to your workstation (device WSA1:), here referred to as node 0. (0 is the standard shorthand notation for representing your node.) You want to run the DECwindows Clock on your workstation and display it on another workstation, ZEPHYR. Assuming you are authorized to display applications on ZEPHYR, you redirect the application's output to ZEPHYR with the SET DISPLAY command. The device created on ZEPHYR is an executive- mode device. You enter the SHOW DISPLAY command to verify the location of the redirected display. You then run Clock. When you finish running Clock, you disable the redirected display by entering the SET DISPLAY/DELETE command. Finally, you enter the SHOW DISPLAY command to verify that any applications subsequently run on your node will also be displayed there. Note that a new workstation display device, WSA2, is created when you enter the SET DISPLAY/CREATE command. When you cancel the redirected display with the SET DISPLAY/DELETE command, application output is once again displayed on the workstation display device referred to by WSA1. 2.$ SET DISPLAY/CREATE/NODE=FLOPSY RABBIT $ SHOW DISPLAY RABBIT Device: WSA2: [super] Node: FLOPSY Transport: DECNET Server: 0 Screen: 0 $ RUN/DETACHED/OUTPUT=WSA2: SYS$SYSTEM:DECW$CLOCK $ SET DISPLAY/CREATE/NODE=ZEPHYR ZNODE $ SHOW DISPLAY ZNODE Device: WSA3: [super] Node: ZEPHYR Transport: DECNET Server: 0 Screen: 0 $ RUN/DETACHED/OUTPUT=WSA3: SYS$SYSTEM:DECW$CALENDAR $ RUN SYS$SYSTEM:DECW$BOOKREADER $ SHOW DISPLAY Device: WSA1: [super] Node: 0 Transport: LOCAL Server: 0 Screen: 0 In this example, you are logged in to your node (device WSA1:), and want to direct the output from applications to several workstation displays in the same session. By specifying different logical names in the SET DISPLAY command, you can redirect the output without changing the logical name definition for DECW$DISPLAY. This allows you to display the output from most applications on your default display but occasionally display output on another workstation. You can also continue to run and display applications on your node. In this example, Clock is displayed on node FLOPSY, Calendar is displayed on node ZEPHYR, and Bookreader is displayed on your workstation. Note that to run your applications with the DCL command RUN/DETACHED, you must use the device name that equates to the logical display device name you specified in the SET DISPLAY command. Use the SHOW DISPLAY command to obtain this device name.
|