Actions
Tee¶
This operator has one parameter, one input and one output. The corresponding shell script copies the input to the output and to the file having the parameter as name.
It is an alternative to the standard file saver of Ariane and it allows to "rename" the input of a component.
Parameters¶
1 parameter, treated as the name of the file to which the input it copied.
Inputs¶
1 input, the input file
Outputs¶
1 output: the result of the command
Shell code¶
filename=$1; shift input=$1; shift output=$1; shift cat $input | tee $filename > $output
Example¶
This operator is mainly used for renaming the temporary file generated by Ariane, for example for invoking Weka (see perturbation-weka.aws, that needs specific file extension.
Mis à jour par François Rioult il y a plus de 14 ans · 3 révisions