Technical Notes |
|
This technical note describes several methods for starting multiple X clients from a single Reflection X connection template command line.
Several methods can be used to start X clients from a single Reflection X command line:
Select the method that works best in your environment and for the X clients you will be accessing.
Most of the default Reflection X connection templates use the -display (-d) startup parameter to notify the X client of the PC's IP address and display number. The syntax provided in these templates can be customized to start multiple X clients, as long as each of the X clients support the -display startup parameter.
(If any of the X clients you wish to start do not support the -display parameter, see Starting Multiple X Clients by First Setting the DISPLAY Environment Variable.)
To start multiple X clients using this method, follow the steps below.
Note: When using this method, you can terminate individual X client connections without affecting the other X clients.
Syntax: (<path/X client1> <parameters> &) ; (<path/X client2> <parameters> &)
The following sample command line connects to a UNIX host and starts xterm, xclock, and calculator.
(/usr/bin/X11/xterm -fn 6x13 -sb -ls -display %IP#% -name %T% &) ; (/usr/bin/X11/xclock -display %IP#% &) ; (/usr/bin/X11/calctool -display %IP#% &)This method sets the DISPLAY environment variable first, making the variable available to all X clients, and then starts each indicated X client.
Note: When using this method, you can terminate any of the X client connections without affecting the other connections.
Follow the appropriate steps for your shell environment.
If you are using the Bourne (sh), Korn (ksh), or Bash shell, follow these steps.
Syntax: DISPLAY=%IP#%;export DISPLAY;(<X client1> & <X client2> &)
The following sample command line connects to a UNIX host, starts the Motif windows manager, xterm, xclock, and Netscape.
DISPLAY=%IP#%;export DISPLAY;(mwm & xterm & xclock & netscape &)If you are using the C (csh) shell, follow these steps.
Syntax: setenv DISPLAY %IP#%;(<X client1> & <X client2> &)
The following sample command line connects to a UNIX host, starts the Motif windows manager, Xterm, Xclock, and Netscape.
setenv DISPLAY %IP#%;(mwm & xterm & xclock & netscape &)Follow the steps below to create a Reflection X connection template that starts both an xterm and an X client on connection using the -e startup parameter. This method will work with any X client that supports the -e startup parameter.
Syntax: (<path/xterm> <parameters> -e <X client> &)
The following sample command line connects to a Sun host and starts an xterm, then opens xclock from the xterm.
(/usr/bin/X11/xterm -fn 6x13 -sb -ls -display %IP#% -name %T% -e xclock &)