toolwait is a program that controls the startup of an X11 client program. toolwait takes a client program as its argument. When the client program has started, toolwait will exit.
The basic options are as follows:
To start a cmdtool with toolwait, the following command may be used:
example% toolwait cmdtool -Wp 0 0 -Ws 557 95 -WP 263 833
To start a mailtool on display "host2" with a timeout of 25 seconds, use the following command:
example% toolwait -display host2:0 -timeout 25 mailtool -display host2:0
Exit status is 0 for clean exits, the exit status of the child if the child has problems, and 1 if toolwait has problems.
In the current version of toolwait, a client is considered "started" when it has mapped a top level window on the display. As soon as toolwait detects that a top level window has been mapped, it will exit.