next up previous contents
Next: Using make Up: Job Examples Previous: Compiling and Running a   Contents

Compiling and Running a Job - V2

I will show now how to perform the same task shown in the example of Section 5.4, but with a slighly different JDL file. The two JDL files are almost equivalent, the only difference is the recovery of the g++ output image. Each user will choose the preferred structure of JDL.


Job Submission Files Conv.Jdl and Conv1.Jdl
JDL Version 1 JDL Version 2
Type = "Job"; Type = "Job";
JobType = "Normal"; JobType = "Normal";
Executable = "/bin/sh"; Executable = "conv1.sh"
StdOutput = "conv.out"; StdOutput = "conv1.out";
StdError = "conv.err"; StdError = "conv1.err";
StdInput = "stdin1.conv";
InputSandbox = InputSandbox =
{"conv.sh","conv.C","stdin.conv"}; {"conv1.sh","conv.C","stdin1.conv"};
OutputSandbox = OutputSandbox =
{"conv.err","conv.out"}; {"conv1.err","conv1.out", "convexe"};
Arguments = "conv.sh";
Execution Scripts conv.sh and conv1.sh
g++ -o convexe conv.C g++ -o convexe conv.C
./convexe < stdin.conv ./convexe
Input Files stdin.conv and stdin1.conv
5679 332211
OutputSandbox Files
0 Oct 15 14:38 conv.err 0 Oct 15 10:58 conv1.err
77 Oct 15 14:38 conv.out 82 Oct 15 10:58 conv1.out
15340 Oct 15 10:58 convexe
conversion is (dec-oct-hex): conversion is (dec-oct-hex):
5679 13057 162f 332211 1210663 511b3
red red


In Version 1 the executable is the Bourne shell /bin/sh and the user script is passed using the Arguments attribute. In Version 2 the executable is the user script conv1.sh without Arguments.

In Version 1 the input data is accessed redirecting file stdin.conv to stdin via the redirection operator <. In Version 2 the standard input is specified with the StdInput attribute, therefore the executing script is more general and does not need a redirection command. In both cases the input file must be declared in the InputSandbox attribute.

In Version 2 the user wants to retrieve also the executale image created by the g++ compiler, thus the file compexe is specified in the value list of the OutputSandbox attribute.


next up previous contents
Next: Using make Up: Job Examples Previous: Compiling and Running a   Contents
luvisetto 2003-12-17