On Wed, Apr 06, 2011 at 05:31:25PM -0400, William Deegan wrote:
Greetings,
Is qacct the best way to pull information about a job to see if its:
1) completed
Probably.
2) timedout
Elaborate?
3) killed
Probably.
4) still running
No.
More detailed answers:
1) You can check via 'qacct', or parse the accounting file directly. for
the exit status. The accounting file is in the
$SGE_ROOT/$SGE_CELL/common/ directory. The file format is documented in
the accounting(5) man page.
2) Unsure what you mean by "timeout".
3) See #1.
4) It's faster/cheaper to check if a job is running with qstat. A
simple "qstat -j <jobid>" will tell you if a job is running or not.
The accounting file can grow to be quite large, and parsing it can take
quite a while not to mention incur an IO hit.
--
Jesse Becker
NHGRI Linux support (Digicon Contractor)
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users