From: Miloš Mulač Date: Fri, 25 Aug 2006 14:35:02 +0000 (+0000) Subject: - prototype of logging usertags X-Git-Tag: glite-jp_R_1_3_2~13 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=46c47f8ad93d2c84d6f795e76e17eb5a01929e34;p=jra1mw.git - prototype of logging usertags --- diff --git a/org.glite.jp/examples/pch06/align.sh b/org.glite.jp/examples/pch06/align.sh index 5b6331b..99bc7a6 100644 --- a/org.glite.jp/examples/pch06/align.sh +++ b/org.glite.jp/examples/pch06/align.sh @@ -1,5 +1,19 @@ #!/bin/sh +log_event() #1 - attr.name #2 attr.value +{ + GLITE_WMS_SEQUENCE_CODE=`$lb_logevent\ + --jobid="$GLITE_WMS_JOBID"\ + --source="Application"\ + --sequence="$GLITE_WMS_SEQUENCE_CODE"\ + --event="UserTag"\ + --node=$host\ + --name="$1"\ + --value="$2"\ + || echo $GLITE_WMS_SEQUENCE_CODE` +} + + exec 2>$$.err >&2 set -x @@ -10,6 +24,14 @@ echo $0 $* chmod +x align_warp scanheader +lb_logevent=${GLITE_WMS_LOCATION}/bin/glite-lb-logevent +if [ ! -x "$lb_logevent" ]; then + lb_logevent="${EDG_WL_LOCATION}/bin/edg-wl-logev" +fi +host=`hostname -f` + +log_event "IPAW_PROGRAM" "align_warp" + globus-url-copy $1.img file://$PWD/anatomy.img globus-url-copy $1.hdr file://$PWD/anatomy.hdr globus-url-copy $2.img file://$PWD/reference.img