PANDORE Version 6 | GREYC-IMAGE |
psetstatus sets the current status value. The status value is the value returned after each execution of a Pandore operator. This value is operator dependent and can be of the following types:
The status value can be printed out by operator pstatus.
setstatus is useful to build new operator as pure shell script since it allows to set the result of the operator. For example, the following shell script becomes a Pandore operator that checks if an image exist and sets the status to SUCCESS or FAILURE from the result:
#!/bin/sh if [ -f $1 ] then psetstatus SUCCESS else psetstatus FAILURE fi
The value set.
psetstatus SUCCESS pstatus {-> returns value SUCCESS }
psetstatus -12e20 pstatus {-> returns value -12e20 }
Not a function.
Affecte la valeur du statut courant à une valeur donnée.
Author: Régis Clouard