The easiest way would be to give a job a name with qsub -N job1 (or use -terse for getting the job id) and then using -hold_jid for the second job. More details you will find in the qsub man page. Of course you can also use DRMAA, or more unusual an array job with task throttling (-tc 1).
Daniel Am 26.09.2012 um 19:59 schrieb Eleonora Lusito: > Dear users, > I have a list of .sh to run, exactly 34. I can run just a .sh job at a time > so I can launch only one qsub at a time because of the complexity of the > analysis. Anyway I would like to find a way to launch a .sh script immediately > after the previous .sh script is completed. > I cannot set a time to start for each job (in order to run them consequently > ) because I don't know exactly the time the script needs due to the fact that > a variable number of users are launching a variable number of script. > I don't know really how this can be done. Any suggestion about? > > Thanks a lot > > > E. > > -- > Eleonora Lusito > Computational Biology PhD student > Molecular Medicine Program > via Ripamonti 435, 20141 Milano, Italy > > Phone number: +390294375160 > e-mail: [email protected] > > > _______________________________________________ > users mailing list > [email protected] > https://gridengine.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
