Difference between revisions of "Queue Manager Tips"

From wiki
Jump to: navigation, search
(Created page with "= Pipe a jobscript to '''qsub'''= echo -e 'date; sleep 2; date' | qsub -cwd -j y -V -S /bin/bash -q all.q -N pipetest This will send a string with the command date, followe...")
(No difference)

Revision as of 16:20, 29 April 2016

Pipe a jobscript to qsub

echo -e 'date; sleep 2; date' | qsub -cwd -j y -V -S /bin/bash -q all.q -N pipetest

This will send a string with the command date, followed by sleep 2 seconds, and then date again. A trivial operation to see if the command works. If the -S option is left out, there will be a warning about lack of a tty, and lack of job control, although the script will still work.