./job_report.sh --help
Finding jobs using: /usr/bin/sacct -j 89401538 -P --noheader
116 COMPLETED jobs
Avg Run Time: 00:31:38
Avg Wall Time: 00:33:44
57 FAILED jobs
Rerun these jobs:
112,119,137,180
0 TIMEOUT jobs
0 RUNNING jobs
0 PENDING jobs
This script can be extended by making edits to the job_report_ext.sh script. This works as a pseudo-module and allows for not changing the main script. See ./examples/job_report_ext.sh
This script in conjunction with 'crontab' is helpful to track the progress of long-running jobs or batches of jobs. Set this up by creating a script for crontab to call with the job information attached. It will automatically mail the report to the logged-in user.
JOB_DIR=/n/seage_lab/esurface/Calibration/simulations/Calibration
OUTPUT="$HOME/.${JOB_NAME}_output"
SACCT_ARGS="--name=pre_calibraiton" $HOME/scripts/job_report.sh $JOB_DIR > "$OUTPUT"
mail -s "CALIBRATION REPORT" [email protected] < "$OUTPUT"
Run crontab -e to edit crontab and add the following code: (more info: man crontab)
0 8 * * * ~/scripts/crontab_script.sh