Skip to content
Advertisement

Run script on completion of sge job

I am using sun grid engine 6.2u5 version . where requirement is when I submit job on using qsub command on completion job i want to run some script(bash scripts).

how can i use -notify option or any other way to track job completion and after completion execute script.

Thanks

Advertisement

Answer

I think hold_jid is what you’re looking for:

qsub -hold_jid jobToWaitFor bashScript

You can also specify multiple jobs to wait for by separating them with commas.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement