> cativic_jobs.jdl contador=0 for i in `cat $LOGS` do contador=`expr $contador + 1` if [ $contador -gt 1 ] then echo $resultado variable=`echo ],[` echo $variable>> cativic_jobs.jdl fi variable1=`echo JobType = \"Normal\"\;` echo $variable1 >> cativic_jobs.jdl variable2=`echo NodeName = \"node$contador\"\;` echo $variable2 >> cativic_jobs.jdl done variable=`echo ]` echo $variable>> cativic_jobs.jdl variable=`echo }\;` echo $variable>> cativic_jobs.jdl variable=`echo ]` echo $variable>> cativic_jobs.jdl echo Termino de crear el JDL echo Antes de enviar el trabajo... glite-wms-job-submit -d $USER -o jobid cativic_jobs.jdl">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

Www.eu-eela.org E-science grid facility for Europe and Latin America E2GRIS1 Jaime Parada, Edgar Perdomo – UCV Itacuruça (Brazil), 2-15 November 2008 CATIVIC.

Similar presentations


Presentation on theme: "Www.eu-eela.org E-science grid facility for Europe and Latin America E2GRIS1 Jaime Parada, Edgar Perdomo – UCV Itacuruça (Brazil), 2-15 November 2008 CATIVIC."— Presentation transcript:

1 www.eu-eela.org E-science grid facility for Europe and Latin America E2GRIS1 Jaime Parada, Edgar Perdomo – UCV Itacuruça (Brazil), 2-15 November 2008 CATIVIC

2 www.eu-eela.org E-science grid facility for Europe and Latin America Status AMGA used to know the status of work and download the results.

3 www.eu-eela.org E-science grid facility for Europe and Latin America ` voms-proxy-init --voms e2gris1.vo.eu-eela.eu glite-wms-job-delegate-proxy -d $USER for i in `cat $LOGS` do echo Comienzo el ciclo... lcg-cr --vo e2gris1.vo.eu-eela.eu -l lfn://grid/e2gris1.vo.eu-eela.eu/app05/$i -d m09- e2gris1.eela.ufrj.br file:/home/app05/cativic/Model/$i lfc-ls -l /grid/e2gris1.vo.eu-eela.eu/app05 echo $i done echo Empiezo a crear el JDL cat > cativic_jobs.jdl << EOF [ Type = "collection"; nodes = { EOF variable=`echo [` echo $variable>> cativic_jobs.jdl contador=0 for i in `cat $LOGS` do contador=`expr $contador + 1` if [ $contador -gt 1 ] then echo $resultado variable=`echo ],[` echo $variable>> cativic_jobs.jdl fi variable1=`echo JobType = \"Normal\"\;` echo $variable1 >> cativic_jobs.jdl variable2=`echo NodeName = \"node$contador\"\;` echo $variable2 >> cativic_jobs.jdl......................... done variable=`echo ]` echo $variable>> cativic_jobs.jdl variable=`echo }\;` echo $variable>> cativic_jobs.jdl variable=`echo ]` echo $variable>> cativic_jobs.jdl echo Termino de crear el JDL echo Antes de enviar el trabajo... glite-wms-job-submit -d $USER -o jobid cativic_jobs.jdl

4 www.eu-eela.org E-science grid facility for Europe and Latin America E #!bin/bash/ LFNStoredFile=$1 #1) Get the stored file from the SE lcg-cp -v --vo e2gris1.vo.eu-eela.eu $LFNStoredFile file:./InputFile.infile:./InputFile.in LFN='LFN' NOM=${LFNStoredFile:38} ID=`mdcli sequence_next $AMGA/seq1` mdcli addentry $AMGA/${ID} LFN \'${LFNStoredFile}\' status 0 nom \'${NOM}\' #2) Execute the application with this file. catparm.exe InputFile.in OutputFile.out #3) Store the OutputFile.out in the SE SEDir="/grid/e2gris1.vo.eu-eela.eu/app05" #echo "This to be stored in the LFN " >> myfile.txt #FileName=$2 FileName=coroHHSCH3.out LFNName=$SEDir/$FileName #lfc-mkdir $SEDir lcg-cr --vo e2gris1.vo.eu-eela.eu -l lfn:$LFNName -d m09-e2gris1.eela.ufrj.br mdcli updateattr $AMGA/$ID status 1 \'status = 0\' #5) Verify if file is stored lfc-ls -l $SEDir | grep $FileName Script_node

5 www.eu-eela.org E-science grid facility for Europe and Latin America AMGA='/test/app05/cativic2' while [ $lin -gt 0 ]; do ID=`mdcli selectattr $AMGA:FILE \'$AMGA:status = 1\' | head -1` if [ "$ID" != "" ] then echo $ID NOM=`mdcli selectattr $AMGA:nom \'$AMGA:FILE = $ID\' ` lcg-cp --vo e2gris1.vo.eu-eela.eu lfn:/grid/e2gris1.vo.eu-eela.eu/app05/${NOM/%in/out} file://$HOME/ejecucion/OUT/${NOM/%in/out} echo $NOM mdcli removeentries $AMGA/$ID let lin-- fi done for i in `cat $LOGS` do echo Comienzo el ciclo... lcg-del -a --vo e2gris1.vo.eu-eela.edu lfn:/grid/e2gris1.vo.eu-eela.eu/app05/$i echo $i done

6 www.eu-eela.eu Itacuruça (Brazil), E2GRIS1, 2.11.2008 – 15.11.2008 Questions … 6


Download ppt "Www.eu-eela.org E-science grid facility for Europe and Latin America E2GRIS1 Jaime Parada, Edgar Perdomo – UCV Itacuruça (Brazil), 2-15 November 2008 CATIVIC."

Similar presentations


Ads by Google