insgen import
(using insgenlog) to generate a new schedulereqid=
requestsresume
commands/home/telescope/bin/procname tarid=TargetID logid=LogIDWhere
telescope
is the telescope set by the TELESCOPE environment variable,
and procname
is the Procedure Name which may have additional arguments,
TargetID is the ID number of the targets and
LogID is the ID of the logging record.
The hard coding of the pathname is a simple security mechanism.
If all the targets are observed sucessfully, telco executes
the FinalProcedure
similar to that above but
without a target id.
The FinalProcedure may be NULL.
After all the targets in the request have been observed sucessfully telco logs this happy event in the database by entering a notation in the Log table.
Success=1It also increments the value of NumberDone in the Request table. If any of the targets fails, the observation is terminated immediately not finishing the remaining ones (or executing the FinalProcedure) and telco puts a notation in the Log table.
Success=0
resume
- to start daemon mode or to ask to refreshinterrupt
- to stop daemon modehelp
- to print out the list of commands reqid=
- to execute a specific
request when not in daemon modeabort
- kill procedure that it is executingtin interrupt tin reqid=3190 tin resume
When running you may use the tin command to query the status. For example when used without arguments it returns a line similar to:
done telco daemon=1 status=napping reqid=356 wake=2008-02-21T06:01:26Z name=Q0906+6930This example says that the daemon is active, that the next request is id=356, it is sleeping until the ISO time and will execute
.
abort kills the procedure that is currently executing. It doesn't kill the commands within the procedure and so things may still be going on. It should only be used in emergencies.
The tin command reports back the status of telco. The allowed states are:
unknown
- not initializedspawing
- executing a program waiting
- sleeping less than one hour before executingnapping
- sleeping one hour or more before regenerating listfailed
- sleeping one hour as a result of NFAIL=5 failuresoff-line
- not doing anything (daemon=0 and not executing)tin resumeThis causes the sleep to be interrupted and and
insgen import
to be run again
RequestID
immediately and
blocks until it is finished.
The program exits with the exit code from the execution of the request.
It is incompatible with the daemon mode.
daemon - turns on the daemon mode on startup; without it, the daemon is off.
debug- generates lot of printout in particular the queries to the database.