Projet

Général

Profil

Eval312 » Historique » Révision 3

Révision 2 (François Rioult, 22/06/2010 22:56) → Révision 3/4 (François Rioult, 22/06/2010 22:56)

h1. Eval312 

 h2. Synopsis 

 This operator has two parameters, one input and two outputs. The corresponding shell script executes the parameters as a command on the input and may have two outputs. 

 h2. Parameters 

 3 parameters, treated as the command (and its two parameters) to be executed. 

 h2. Inputs 
 

 1 input file. 

 h2. Outputs 

 2 outputs: the result of the command. 

 h2. Shell Code 

 <pre> 

 cmd=$1; shift 
 args=$1; shift 
 value=$1; shift 
 input=$1; shift 
 output1=$1; shift 
 output2=$1; shift 

 $cmd "$args" $value $input $output1 $output2 
 </pre> 

 h2. Example 

 This operator is used for applying a command with parameters, for example in [[CMAR.aws]] for the repartition task, that needs two parameters: the number of files and the current pair index.