| 34 | {{{ |
| 35 | cat hello.jdl |
| 36 | #: the name of the file which will be actually executed |
| 37 | Executable = "hello.sh" ; |
| 38 | |
| 39 | CpuNumber = 1; |
| 40 | |
| 41 | # the name of the file where standard output stream will be redirected |
| 42 | StdOutput = "stdout.txt"; |
| 43 | |
| 44 | # the name of the file where standard error stream will be redirected |
| 45 | StdError = "stderr.txt"; |
| 46 | |
| 47 | # list of local files which will be transferred to |
| 48 | # the remote resource before the execution |
| 49 | InputSandbox = {"hello.sh"}; |
| 50 | |
| 51 | # list of remote files which will be transferred from the resource |
| 52 | # after the execution |
| 53 | OutputSandbox = {"stdout.txt", "stderr.txt"}; |
| 54 | Requirements = ( other.GlueCEUniqueID == "ce.ceta-ciemat.es:8443/cream-sge-ibtut.cg" || |
| 55 | other.GlueCEUniqueID == "cream01-egi.bifi.unizar.es:8443/cream-slurm-tutiber" ); |
| 56 | }}} |
| 57 | |
| 58 | |
| 59 | {{{ |
| 60 | cat hello.sh |
| 61 | #!/bin/sh |
| 62 | echo "Hello World - from $HOSTNAME" |
| 63 | echo -n "It's " |
| 64 | date |
| 65 | |
| 66 | }}} |