Personal tools
You are here: Home User Support User Documentation Globus Job Submission in DEISA 4 Options for globusrun-ws

4 Options for globusrun-ws

4.1 Re-direction of output

To stream command output to the screen, use the -s switch, i.e.,

globusrun-ws -submit -F `deisa_service -i -g lrz` -s -c /bin/date

Without the -s flag, the previous command would not show the result of the date command. To write the standard output and the standard error to files, use the -so and -se flags, i.e.,

globusrun-ws -submit -F `deisa_service -i -g lrz` \
-so stdout_file.txt -se stderr_file.txt -c /bin/date

4.2 Fire and forget job submission

The commands given above block the command line until the remote job finishes. For longer running jobs, it is better to use -batch switch to send the job to the target server and then the job submission command returns to the prompt. Thus there is no need for a continuous network connection and it is not necessary to keep a shell open.

The -batch switch does not mean that the job is sent to the batch scheduling system, which is specified with
-Ft switch. This switch is added if you employ the deisa_service script.

Later, to access the job output, to query its state, or to kill the job, a reference for the job will be written to a file defined with the -o switch:

globusrun-ws -submit -batch -o epr.xml -S -F `deisa_service -i -b lrz` -f myscript.rsl 

When you have obtained the EPR file epr.xml, globusrun-ws can be used to kill the job or to monitor its status:

globusrun-ws -kill -j epr.xml globusrun-ws -status -j epr.xml
Document Actions