Description : #param:service_description# Contact : #param:service_contact#
Template : Sebastien.Carrere@toulouse.inra.fr and Sebastien.Letort@toulouse.inra.fr
Title : CreateInputFiles_#param:service_name# Usage : ($code, $cmd) = CreateInputFiles_#param:service_name#($tmpdir, $file_root, $cmd, $rh_input_data, $o_param) Function: Creates input files for each input article to be used in the shell command line. Makes substitutions in the command line with the temporary file names. If input file can not be created, returns 0 and SOAP message Else, return 1 and the command line. Args : $query_id Moby query ID $tmpdir temporary dir $file_root temporary file name $cmd original masked command line $rh_input_data hash reference of input articles data $o_param ParamParser object Returns : code (0|1) SOAP message|command
Title : NameOutputFiles_#param:service_name# Usage : ($cmd) = NameOutputFiles_#param:service_name#($cmd, $o_param) Function: Makes substitutions in the command line with the temporary file names. Args : $tmpdir temporary dir $file_root temporary file name $cmd original masked command line $o_param ParamParser object Returns : command
Title : ExecuteCmd_#param:service_name# Usage : ($code_run,$exception) = ExecuteCmd_#param:service_name#($query_id,$cmd,$o_param) Function: Execute the shell command and deal with error message. Returns an integer (code_run): 0 means that error is fatal (main program should return an empty BioMoby message). Args : $query_id Moby query ID $cmd shell command $o_param ParamParser object Returns : $code_run $exception Moby Encoded Exception
Title : CatOutputFiles_#param:service_name# Usage : $moby_response = CreateInputFiles_#param:service_name#($tmpdir, $file_root, $moby_response, $o_param) Function: Get content of generated output files and add to moby response message Args : $query_id Moby query ID $tmpdir temporary dir $file_root temporary file name $moby_response original moby response to be completed $o_param ParamParser object Returns : $moby_response completed moby response
Title : _Log_#param:service_name# Usage : _Log_#param:service_name#($message) Function: Write execution log message into #param:service_name#/log file Args : $message Returns : none