Re: [slurm-users] Add prolog and epilog to sbatch's job

2018-08-06 Thread Hadrian Djohari
We put this exact function in epilogctld On Mon, Jul 9, 2018 at 4:02 AM, Franck HOUSSEN wrote: > Hello, > > How to add an epilog to the job.log I got from running "sbatch -o job.log > job.sh" ? > I would like to run "scontrol show job $SLURM_JOB_ID" in the epilog (track > job info). > > I tried

Re: [slurm-users] Add prolog and epilog to sbatch's job

2018-08-06 Thread Bjørn-Helge Mevik
I don't remember exactly when it comes to TaskEpilog, but the Epilog does not put its output into the job's --output or --error file(s). Hopefully, SchedMD will add an easy way for prologs/epilogs to write to the job's file someday. In the mean time, we use a dirty hack for it. Basically, our Epi