Ciop-simjob » History » Version 5
Herve Caumont, 2013-09-21 00:26
1 | 5 | Herve Caumont | h1. ciop-simjob CLI reference |
---|---|---|---|
2 | 3 | Herve Caumont | |
3 | 5 | Herve Caumont | {{>toc}} |
4 | 1 | Herve Caumont | |
5 | 5 | Herve Caumont | h2. Name |
6 | 1 | Herve Caumont | |
7 | 5 | Herve Caumont | ciop-simjob -- runs a specified node of the application workflow. This is useful to perform unit test for a job. |
8 | 1 | Herve Caumont | |
9 | 5 | Herve Caumont | h2. Synopsis |
10 | 1 | Herve Caumont | |
11 | <pre> |
||
12 | 5 | Herve Caumont | ciop-simjob {node} [option] |
13 | 1 | Herve Caumont | </pre> |
14 | |||
15 | 5 | Herve Caumont | h2. Options |
16 | 1 | Herve Caumont | |
17 | *node* |
||
18 | |||
19 | p. This must be the id of the node registered in the workflow "sample" in the file ${_CIOP_APPLICATION_PATH}/application.xml |
||
20 | |||
21 | *-i input* |
||
22 | |||
23 | p. directory name or file name containing the input to map to the executable via stdin. This path must be relative to share path ${_CIOP_SHARE_PATH}. |
||
24 | By default the value is setup to find the best input for your job (more info in the documentation) |
||
25 | |||
26 | *-o output* |
||
27 | |||
28 | p. directory name where to put the output file with the stdout of the execution This directory must not exist (or use -f) and must be relative to share path ${_CIOP_SHARE_PATH} |
||
29 | By default the value is setup to find the best output dir for next job (more info in the documentation) |
||
30 | |||
31 | *-f* |
||
32 | |||
33 | p. delete existing output directory if it exists (default: no) |
||
34 | |||
35 | *-n* |
||
36 | |||
37 | p. list the node ids of the workflow |
||
38 | |||
39 | *-p name value* |
||
40 | |||
41 | p. define a processing parameter for the simulation. If a default value is defined in the application.xml, it will be overwritten (not yet implemented) |
||
42 | |||
43 | 5 | Herve Caumont | h2. Exit codes |
44 | 1 | Herve Caumont | |
45 | @ciop-simjob@ command exits 0 on success, and >0 if an error occurs. |
||
46 | |||
47 | 5 | Herve Caumont | h2. Examples |
48 | 1 | Herve Caumont | |
49 | h3. Example 1. Get the workflow node IDs |
||
50 | |||
51 | <pre>ciop-simjob -n</pre> |
||
52 | |||
53 | h3. Example 2. First run of a given workflow node |
||
54 | |||
55 | <pre>ciop-simjob node_name</pre> |
||
56 | |||
57 | h3. Example 3. Following runs of a given workflow node (deletes the results of a previous run) |
||
58 | |||
59 | <pre>ciop-simjob -f node_name</pre> |
||
60 | |||
61 | 5 | Herve Caumont | h2. See also |
62 | 1 | Herve Caumont | |
63 | p. [[ciop-simwf]] |