[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get control from bash script of a batch job

From: mauede
Subject: How to get control from bash script of a batch job
Date: Mon, 7 Feb 2011 21:38:42 -0800 (PST)

I launch a Monte Carlo simulation as a batch job from a bash script:

 exb BEAM_$acc_name $beamin 521icru2 long batch=PBS p=1&

I can still get the process id (I think) through the command:


I have to launch another simulation which will be given in input  a file
created by the previous one.
Can I trust such process ID to wait until the simulation is completed  so as
I know when to launch the second simulation ?
My doubt is that all the process control is handled by the batch system PBS.
If I type "qstat" on a terminal line I get the batch running process ID 
which is not the same as $!.
I do not know of any bash variable that contain the same information
returned by qstat.

Thank you for any suggestion.

View this message in context: 
Sent from the Gnu - Bash mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]