Projet

Général

Profil

Setstatus » Historique » Version 1

François Rioult, 23/06/2010 18:44

1 1 François Rioult
h1. Setstatus
2
3
4
5
6
h2. Synopsis
7
8
This operator has only one input: it is used for reading a value from the input file and set the result parameter of the operator. After that, this parameter can set other operators.
9
10
h2. Parameters
11
12
no parameter.
13
14
h2. Inputs
15
16
1 input, the input file containing the value to be read
17
18
h2. Outputs
19
20
no output.
21
22
h2. Shell code
23
24
<pre>
25
cat $1 | (read a; psetstatus $a)
26
</pre>
27
28
h2. Example
29
30
This operator is in used in the scenario [[CMAR]], where some shell commands compute the number of classes in the data in a file, and this value is set a the result of the operator.