When submitting a job, I am able to provide qsub
with the path for the standard output and the standard error.
On the other side, while my job 12345 is running, I can access to extra info related to it by using qstat -j 12345
.
My question is if there is a way to set a path in qsub
to automatically record the same kind of information provided by qstat
into a file?
I found a way of finding out what happened to a job. The name of the utility is qacct. Is is a by dirty but with some grep juggling you can get what you need.
For instance to get information about the exit status, jobnumer and task for the last day in the cluster, run:
qacct -j -d 1 | egrep -i "exit_status|jobnumber|taskid"