From d297aaa14011fe5874c8195ca08faeff3730ccb2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Wed, 15 Feb 2006 16:41:23 +0000 Subject: [PATCH] - better sed command - retrieve some LB-based attributes after uploading the file --- org.glite.jp.primary/examples/jpps_store_test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 1.8.2.3