Your first DIRAC job
This section is a copy of what is presented in
https://github.com/DIRACGrid/DIRAC/wiki/JobManagement
Note: You will basically never submit a job via a JDL directly yourself. Use the python API to create jobs and control input and output and let dirac write the JDL for you.
The default way of creating jobs in DIRAC is to use the same method as regular GRID jobs, with JDLs. A JDL (or Job Description Language) follows a standard. It's a simple composition of Attribute=Value;. For example, the following is a correctly defined JDL:
[
JobName = "Simple_Job";
Executable = "/bin/ls";
Arguments = "-ltr";
StdOutput = "StdOut";
StdError = "StdErr";
OutputSandbox = {"StdOut","StdErr"};
]
It has a few mandatory parameters indicated above. Many other are possible, but are not indicated here as this is not the main supported way of submitting jobs. Nevertheless if you have a JDL, you may submit it to DIRAC using
dirac-wms-job-submit myjdl.jdl
This will return you a job ID. If using that method of submission, you may want to store those job IDs in some text file as they are needed to obtain their output.
--
AndreSailer - 21 Feb 2014: Moved from
DiracForUsers