Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

windows(1)

wmstart(1)

wmstop(1)

alarm(2)

WMREADY(1)

NAME

wmready − tell if window manager is awake and ready

SYNOPSIS

wmready [−v]

DESCRIPTION

This command reports on whether the window manager (wm) is currently awake, running, and ready to accept requests. It uses the wm special file in the directory specified by the environment variable $WMDIR. It can be used to wait for wm startup, or to check if the window system is already running. 

The only option is:

-v Verbose operation:  Print a message to standard output in addition to returning a value. 

wmready says wm is not ready if the wm special file can’t be opened for read/write within two seconds (using alarm(2) for timeout), or if a simple wm request fails.  If wm is "ready" but merely busy (e.g. with a pop-up menu), the command blocks on the request for an indefinite time, but may eventually indicate wm is ready. 

RETURN VALUE

0 the window manager is ready,

1 the window manager is not ready. 

SEE ALSO

windows(1), wmstart(1), wmstop(1), alarm(2). 

Hewlett-Packard Company  —  HP-UX Release 8.0: January 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026