[GE users] job dependency question

Rayson Ho rayrayson at gmail.com
Wed Oct 8 03:25:22 BST 2008


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

The link in your email is for job arrays.

You should read the qsub manpage instead, and look up the "hold_jid"
option. If you google "qsub" and "hold_jid", the results should at
least include a few examples.

Rayson



On 10/7/08, Mag Gam <magawake at gmail.com> wrote:
> I have been reading many SGE job dependency pages online (such as
> http://open.rsp.com.au/?page_id=11) but I am still not able to do the
> task I wanted to do. Or perhaps I may be looking at the wrong thing.
> Here is what I am looking for:
>
> I have 2 commands. Command A and Command B. Command A needs to run
> first and then execute Command B once Command A is completed. In other
> words Command B depends on Command A.
>
> commandA.sh
>
> #!/bin/bash
> #$ -o output
> #$ -S /bin/bash
> #$ -S -V
> tar -cvf file.tar /large_directory
>
>
> CommandB.sh
> #!/bin/bash
> #$ -o output
> #$ -S /bin/bash
> #$ -S -V
> gzip file.tar
>
>
> Basically, I want to submit both of the jobs to our GRID but with
> commandB running after CommandA
>
> TIA
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list