next up previous contents
Next: Compiling and Running a Up: Job Examples Previous: Overview of JDL Basic   Contents

JOB simple: script and JDL file

The job script is very simple but it is a template of standard production jobs that should collect job run relevant informations like timing and executing node. This kind of stdout messages is relevant in case of execution problems as the user can track the WN node executing the job and the related execution time interval so that failures can be inspected and possibly tracked.


Execution Script simple.sh
#!/bin/sh
#
echo -n "Start date is: "
date
echo "-------------"
echo "First JDL test on CNAF LCG-1"
echo "Job running on WN: "`hostname`
echo "-------------"
echo -n "End date is: "
date


The JDL file is very similar to hnam.jdl, the only difference is the InputSandbox entry that sends to the RB the script file.


Job Submission File simple.jdl
Executable = "simple.sh";
StdOutput = "simple.out";
StdError = "simple.err";
InputSandbox = {"simple.sh"};
OutputSandbox = {"simple.out", "simple.err"};


The script creates the simple.out file as follows:


OutputSandbox simple.out
Start date is: Thu Sep 18 16:08:02 CEST 2003
-------------
First JDL test on CNAF LCG-1
Job running on WN: lxshare0372.cern.ch
-------------
End date is: Thu Sep 18 16:08:02 CEST 2003



next up previous contents
Next: Compiling and Running a Up: Job Examples Previous: Overview of JDL Basic   Contents
luvisetto 2003-12-17