Difference between revisions of "Application examples"

From SNIC Documentation
Jump to: navigation, search
(Generic examples)
(Swestore documentation moved)
(Tag: New redirect)
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Generic examples ==
+
#REDIRECT[[Swestore Documentation Moved]]
 
 
This job just sends a script to a grid resource which writes "Hello, grid!" to standard output. The scripts stores standard input and output to the files stdout.txt och stderr.txt. All output is collected upon retrieval using the directive "/" in the outputFiles attribute. Walltime is set to 5 minutes. The executable is also added to the input files section.
 
 
 
XRSL job description (ex1.xrsl):
 
 
 
<pre>&
 
(executable=run.sh)
 
(wallTime="5 minutes")
 
(stdout="stdout.txt")
 
(stderr="stderr.txt")
 
(inputFiles=("run.sh" ""))
 
(outputFiles=("/" ""))
 
</pre>
 
 
 
Executable shell script (run.sh):
 
 
 
<pre>#!/bin/sh
 
echo "Hello, grid"
 
</pre>
 
 
 
Usage:
 
 
 
<pre>arcsub ex1.xrsl</pre>
 
 
 
More verbose output is achieved with:
 
 
 
<pre>arcsub --debug=INFO ex1.xrsl</pre>
 
 
 
== Octave / MATLAB examples ==
 
 
 
== SciPy / Numpy examples ==
 
 
 
== ARC Python API examples ==
 

Latest revision as of 10:20, 8 February 2023