next up previous contents
Next: Talking to the Telco Up: telco - observatory master Previous: Waiting Strategy   Contents

Request Execution

When telco executes a request it looks up the list of targets and their associated Procedures from the database. Remember a request may have multiple targets. For each target it then executes the command:
/home/rct/bin/procname tarid=TargetID logid=LogID
where 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. For example:
/home/rct/bin/photo offra=.02 tarid=45 logid=569
/home/rct/bin/dark tarid=6788 logid=445
After all the targets in the request have been observed successfully telco logs this happy event in the database by entering a notation in the Log table (Section 7.1.4).
Success=1
It also increments the value of NumberDone in the Request table (Section 7.1.6). If any of the targets fails, the observation is terminated immediately not finishing the remaining ones and telco puts a notation in the Log table.
Success=0


Louis-Gregory Strolger 2012-01-09