Bjørn-Helge Mevik
unread,Aug 6, 2018, 6:49:07 AM8/6/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to slurm...@schedmd.com
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 Epilog
script uses information from "scontrol show job" to get the name of the
--output file, and redirects output directly to it. (If the file
doesn't yet exist, the epilog must create it, with correct ownerships
and permissions, and depending on your setup (e.g., rootsquash), you
have to su to the job user first. I told you it was a dirty hack. :)
--
Regards,
Bjørn-Helge Mevik, dr. scient,
Department for Research Computing, University of Oslo