From: Aleš Křenek Date: Wed, 15 Feb 2006 16:41:23 +0000 (+0000) Subject: - better sed command X-Git-Tag: merge_for_3_1_dst~6 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=d297aaa14011fe5874c8195ca08faeff3730ccb2;p=jra1mw.git - better sed command - retrieve some LB-based attributes after uploading the file --- diff --git a/org.glite.jp.primary/examples/jpps_store_test b/org.glite.jp.primary/examples/jpps_store_test index 27569b5..f98954a 100755 --- a/org.glite.jp.primary/examples/jpps_store_test +++ b/org.glite.jp.primary/examples/jpps_store_test @@ -41,7 +41,7 @@ echodo $jpps GetJobAttr $jobid http://egee.cesnet.cz/en/Schema/JP/System:regtime if [ -f "$dump" ]; then - sed "s/_CHANGE_ME_JOBID_/$jobid/" $dump >job.$$ + sed "s|_CHANGE_ME_JOBID_|$jobid|" $dump >job.$$ echodo $jpps StartUpload $jobid urn:org.glite.jp.primary:lb 1234 text/plain >start.$$ cat start.$$ dest=`grep '^Destination:' start.$$ | cut -d' ' -f2` @@ -52,6 +52,10 @@ if [ -f "$dump" ]; then # does not pass authz check -- probably OK # echodo $jpps GetJobFiles $jobid + + lbprefix="http://egee.cesnet.cz/en/Schema/LB/Attributes" + echodo $jpps GetJobAttr $jobid "$lbprefix:user" + echodo $jpps GetJobAttr $jobid "$lbprefix:finalStatus" fi if [ "x$tags" != x ]; then