BAIT: accepter.csh script
NAME
accepter.csh - accepts and queues incoming request files
SYNOPSIS
accepter.csh
DESCRIPTION
The accepter.csh is a C-shell script which contains a never ending
loop in which incoming mail is intercepted and read. It copies each incoming
message into a request file, assigning it a unique id using
mkid.
If a
guide star is required (and the telescope supports guiding) guide star
coordinates are assigned using
gs
at this time. It then passes the
request file through the
checkhost
program which compares the MAILADDR
with a list of allowed hosts and sees whether the PRIORITY is a legitimate
value. If it succees, it then passes the request file through the
accepter
program and records any comments. (The accepter uses the
`verbose' flag so that warnings are generated and passed back to the sender.)
It then composes a message informing the sender whether the observation was
accepted or rejected and includes any comments generated by the accepter.
This message is then mailed to the address found in the Return-Path: field of
the incoming message. If the request file was
accep
ted, it is moved into the target directory and a newreqs message is
transmitted to
insgen (using
tin).
If the observation is
rejected, it is moved into the morgue and a copy is forwarded to the morgue
directory in
Berkeley.
accepter.csh is initiated by the
daily.csh and writes into the
file `accepter.log' in the current data
directory.
COMMANDS
accepter.csh interprets several different PROCEDUR's in incoming
requests that provide facilities for checking and modify the requests. To
invoke them mail in a short request file with the PROCEDUR argument specified
below and an END statement, some procedur's require additional keywords.
Hopefully you will get an answer on the return
mail.
The available procedur's are:
del_request - delete a request (specify REQID (s)) get_targets - returns a
list of the requests in the targets directory. get_hubble - returns a list
hubble stars (RA, DEC and EPOCH needed). get_config - returns the telescope
configuration file
- get_list
- - returns list of targets that are scheduled
BUGS
It is possible that the accepter may accept an observation and insgen may
reject it. No checking on the origin of the request is
made.
SEE ALSO
ait.config,
accepter,
checkhost,
daily.csh,
insgen,
,
mkid,
request,
tin