From: Aleš Křenek Date: Fri, 25 Aug 2006 12:46:06 +0000 (+0000) Subject: sandboxy X-Git-Tag: glite-jp_R_1_3_2~16 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=7444e624437d16ea9e29fa6072ea8fdb6ef492e7;p=jra1mw.git sandboxy --- diff --git a/org.glite.jp/examples/pch06/pch06.jdl-template b/org.glite.jp/examples/pch06/pch06.jdl-template index 87b4e25..8b77aeb 100644 --- a/org.glite.jp/examples/pch06/pch06.jdl-template +++ b/org.glite.jp/examples/pch06/pch06.jdl-template @@ -5,131 +5,85 @@ type = "dag"; Requirements = other.GlueCEInfoHostname=="skurut17.cesnet.cz"; LBAddress = "skurut1.cesnet.cz:9000"; +InputSandbox = { + "SANDBOX/align.sh", + "SANDBOX/reslice.sh", + "SANDBOX/softmean.sh", + "SANDBOX/slicer.sh", + "SANDBOX/convert.sh", + "SANDBOX/align_warp", + "SANDBOX/scanheader", + "SANDBOX/reslice", + "SANDBOX/softmean", + "SANDBOX/slicer", + "SANDBOX/convert", +}; + nodes = [ align1 = [ description = [ executable = "align.sh"; arguments = "BASE1 REFERENCE"; - inputsandbox = { "align.sh", "align_warp", "scanheader" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; align2 = [ description = [ executable = "align.sh"; arguments = "BASE2 REFERENCE"; - inputsandbox = { "align.sh", "align_warp" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; align3 = [ description = [ executable = "align.sh"; arguments = "BASE3 REFERENCE"; - inputsandbox = { "align.sh", "align_warp" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; align4 = [ description = [ executable = "align.sh"; arguments = "BASE4 REFERENCE"; - inputsandbox = { "align.sh", "align_warp" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; reslice1 = [ description = [ executable = "reslice.sh"; arguments = "BASE1"; - inputsandbox = { "reslice.sh", "reslice" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; reslice2 = [ description = [ executable = "reslice.sh"; arguments = "BASE2"; - inputsandbox = { "reslice.sh", "reslice" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; reslice3 = [ description = [ executable = "reslice.sh"; arguments = "BASE3"; - inputsandbox = { "reslice.sh", "reslice" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; reslice4 = [ description = [ executable = "reslice.sh"; arguments = "BASE4"; - inputsandbox = { "reslice.sh", "reslice" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; softmean = [ description = [ executable = "softmean.sh"; arguments = "BASE1 BASE2 BASE3 BASE4 ATLAS"; - inputsandbox = { "softmean.sh", "softmean" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; slicerx = [ description = [ executable = "slicer.sh"; arguments = "ATLAS x"; - inputsandbox = { "slicer.sh", "slicer" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; slicery = [ description = [ executable = "slicer.sh"; arguments = "ATLAS y"; - inputsandbox = { "slicer.sh", "slicer" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; slicerz = [ description = [ executable = "slicer.sh"; arguments = "ATLAS z"; - inputsandbox = { "slicer.sh", "slicer" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; convertx = [ description = [ executable = "convert.sh"; arguments = "ATLAS x"; - inputsandbox = { "convert.sh", "convert", "delegates.xml" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; converty = [ description = [ executable = "convert.sh"; arguments = "ATLAS y"; - inputsandbox = { "convert.sh", "convert", "delegates.xml" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; convertz = [ description = [ executable = "convert.sh"; arguments = "ATLAS z"; - inputsandbox = { "convert.sh", "convert", "delegates.xml" }; - stdoutput = "std.out"; - stderror = "std.err"; - outputsandbox = { "std.out", "std.err" }; ] ]; ]; diff --git a/org.glite.jp/examples/pch06/pch06.runme b/org.glite.jp/examples/pch06/pch06.runme index 0ee9812..9f93278 100644 --- a/org.glite.jp/examples/pch06/pch06.runme +++ b/org.glite.jp/examples/pch06/pch06.runme @@ -1,12 +1,14 @@ #!/bin/sh +sandbox='gsiftp://umbar.ics.muni.cz:1414/home/ljocha/tmp/pch06' + if [ -z "$6" ]; then echo usage: $0 reference base1 base2 base3 base4 atlas echo " all args are URLs without suffix" exit 1 fi -sed "s|REFERENCE|$1|; s|BASE1|$2|; s|BASE2|$3|; s|BASE3|$4|; s|BASE4|$5|; s|ATLAS|$6|" pch06.jdl-template >pch06.jdl +sed "s|REFERENCE|$1|; s|BASE1|$2|; s|BASE2|$3|; s|BASE3|$4|; s|BASE4|$5|; s|ATLAS|$6|; s|SANDBOX|$sandbox|" pch06.jdl-template >pch06.jdl # glite-wms-job-submit -a pch06.jdl