Hi Purvesh,
which version of Slurm are you using?
In which OS-environment?
The epilog script is run *on every node when a user's job completes*.
So:
* Do you have copied your epilog script to all of your nodes?
* Did you look at /tmp/ on nodes a job ran recently to see if there is
any output of your script (you might have to do a "find /tmp -name
testfile" as root)?
Do you want to run your script upon job completion *on the "master"
node*? If yes, use
EpilogSlurmctld=/var/slurm/etc/epilog-test
in your slurm.conf.
Regards,
Hermann