BAIT: keepopen command

NAME

keepopen - to keep the slit open and centered on the telescope azimuth

SYNOPSIS

keepopen [maxtime= %d] [nodome] [noslit] [verbose]

DESCRIPTION

keepopen transmits the `slit keepopen' and `power keepon' messages every 500 seconds so that the dome slit will not time out and close and the telescope power will stay on. Used without arguments, it sends one keepopen message and exits. If the slit is closed or the power is off, an error occurs, and the program exits with a non-zero termination code.

If a maxtime is specified (in seconds) then the program loops. If maxtime < 500 then no messages are transmitted and the program just exits. In addition it transmits the `dome center' message before each sleep. If the dome closes at any time the program dies with a non-zero exit code.

noslit - turns off the slit keepopen message.

nodome - turns off the dome centering message.

keepopen will return an error if the sun is higher than 10 degrees above the horizon.

Error messages will not be printed unless the `verbose' flag is used.

SEE ALSO

tserver