70 likes | 161 Views
Advance Report. E2GRIS1 Rolando Navarro / Omar Palomino International Potato Center Itacuruça (Brazil), 2-15 November 2008. User. message1. message2. cip-structre.sh BASH FILE. message n. UI. parametric.djl. - The parallel Type implemented is based Parametric Mode.
E N D
Advance Report E2GRIS1 Rolando Navarro / Omar Palomino International Potato Center Itacuruça (Brazil), 2-15 November 2008
User message1 message2 . . . cip-structre.sh BASH FILE message n UI parametric.djl
- The parallel Type implemented is based Parametric Mode. - Bash file implemented in UI to generate JDL file and each argument that is used to run the program. - Test the script for several values.
BASH SCRIPT echo "Welcome to Structure, please enter the following information" echo "" echo -n "Enter k min:" read "Kmin" echo -n "Enter k max:" read "Kmax" echo -n "Enter runs: " read "nrun" cont=0; cont2=0; cont3=1;
while [ $cont -lt $nrun ]; do cont2=$Kmin #let cont=cont+1 echo "Esta es la corrida: $cont3" echo "El contador2 es $cont2" while [ $cont2 -le $Kmax ]; do message="message${cont3}.sh" echo -n "/usr/local/bin/structure -K $cont2 " > $message let cont2=cont2+1 echo $cont2 let cont3=cont3+1 done let cont=cont+1 done
##### JDL creation ##### echo "[" >> test_structure.jdl echo "JobType = \"Parametric\";" >> test_structure.jdl echo "Executable = \"/bin/sh\";" >> test_structure.jdl echo "Arguments = \"message_PARAM_.sh\";" >> test_structure.jdl echo "InputSandbox = { \"message_PARAM_.sh\",\"/home/app09/test2/inputs/mainparams\",\"/home/app09/test2/inputs/extraparams\",\"/home/app09/test2/inputs/testdata1\"};" >> test_structure.jdl echo "Parameters= $cont3;" >> test_structure.jdl echo "ParameterStep =1;" >> test_structure.jdl echo "ParameterStart = 1;" >> test_structure.jdl echo "StdOutput = \"results_f\";" >> test_structure.jdl echo "StdError = \"myerror_PARAM_.txt\";" >> test_structure.jdl echo "OutputSandbox = {\"results_f\", \"myerror_PARAM_.txt\"};" >> test_structure.jdl echo "ShallowRetryCount = 1;" >> test_structure.jdl echo "]" >> test_structure.jdl glite-wms-job-submit -a -o ID_structure.txt test_structure.jdl
NEXT STEPS - Create Web Interface based on PHP that permit users execute the program in s easy way.