dxdw - Runs and repeats command line commands
/usr/bin/X11/dxdw [-c initial_command]
-c Specifies the command to run. The command string must be enclosed in
double quotes if it contains any spaces or special characters inter-
preted by the shell.
Display Window accepts all of the standard X Toolkit command line options,
which are documented in the OPTIONS section of the X(1X) reference page.
The Display Window application, dxdw, can be used to run commands at speci-
fied time intervals.
You can use Display Window to:
+ Run a command and display a transcript of the output
+ Repeat a command at regular intervals
+ Print the output to the default printer
+ Save the output to a file
You can use Display Window to run common commands without starting up a
full xterm. The optional -c option specifies an initial command. The
Display Window application presents a transcript containing the current
command, its output, and its command-line error messages. You can change
the command after the application starts. The transcript area is output-
only, so you cannot use Display Window to run commands that require user
interaction on the command line.
The Display Window application can be invoked from the CDE Application
Manager from the following categories:
Application Group: System_Admin
System Admin Subgroup: Daily Admin
When the Display Window main window invoked, the transcript is empty
because there is no command running. Enter a command to run in the Command
input text field.
Because Display Window can be started with a default initial command,
several launchpoints have been created in the Application Manager to run
specific command-line applications. These applications include I/O
Statistics (iostat), Network Statistics (netstat), Virtual Memory Statis-
tics (vmstat), and Who? (who).
To start one of the preceding applications within Display Window from the
1. Click on the Application Manager icon on the CDE front panel.
2. Double click on the System_Admin application group icon.
3. Double click on the Tools application group icon.
4. Double click on the icon for the command you want to run in the
Display Window application.
The Display Window application invokes the command once. The output
from the command is displayed in the transcript area.
You can also start Display Window from the command line. To start Display
Window from the command line, enter the following:
/usr/bin/X11/dxdw [-c initial_command]
The -c option specifies the command string to run when Display Window is
started. On the command line, the command string must be enclosed in dou-
ble quotes if it contains any spaces or special characters interpreted by
The command string can be any of the following:
+ A single command
+ A series of commands in a pipeline (|)
+ A series of commands separated by semicolons
After Display Window starts, a new command string can be entered in the
Command input text field. In the graphical user interface, it is not neces-
sary to enclose the command string in double quotes.
To enter a new command string:
1. Clear the Command input text field if a command is already present.
2. Enter a new command string in the Command input text field.
3. Press the Return key in the Command input text field to run the com-
1. The following example runs the iostat command one time in the Display
Window application. You can use the Repeat Every dialog box to repeat
the command at regular intervals.
dxdw -c iostat
2. The following examples show how to use Display Window from the command
dxdw -c df
dxdw -c "ps -aef"
dxdw -c "ps -aef | grep dxdw"
dxdw -c "mount; showmount"
3. You can view the Display Window online help volume without running the
application. To open the Display Window help volume from the command
line, enter the following command:
/usr/dt/bin/dthelpview -h \
Contains the Display Window application executable
Contains the Display Window help volume
Contains the default values for the application's X resources
Commands: iostat(1), netstat(1), vmstat(1), who(1), X(1X)