I'm also in favor of epilog scripts, though it really depends on what
you are eventually trying to achieve.
Also, I'm not sure I understand what you meant by the slurm job
sleeping for 6 seconds and rebooting. You did want it to reboot, no?
The 4 "missing" seconds might be the time difference betw
Seems like there are better approaches.
In this situation, I would use an epilogue script and give sudo access
to the script. Check out https://slurm.schedmd.com/prolog_epilog.html
That would likely be much easier and fit into the methodology slurm uses.
Brian Andrus
Firstspot, Inc.
On 6/4/
I would like to run a bash script or binary executable as root (even if the
user who started the job doesn't have root rights) at the end of a job if I
put an option in my spank plugin
2018-06-04 16:36 GMT+02:00 John Hearns :
> That kinnddd of... defeats... the purpose of a job
>
That kinnddd of... defeats... the purpose of a job
scheduler.
I am very sure that you know why you need this and you have a good reason
for doing it. Over to others on the list, sorry.
On 4 June 2018 at 16:15, Tueur Volvo wrote:
> no I don't have dependency treated.
>
> during t
no I don't have dependency treated.
during the job, I would like to run a program on the machine running the job
but I'd like the program to keep running even after the job ends.
2018-06-04 15:30 GMT+02:00 John Hearns :
> Tueur what are you trying to achieve here? The example you give is
> touc
Tueur what are you trying to achieve here? The example you give is
touch /tmp/newfile.txt'
I think you are trying to send a signal to another process. Could this be
'Hey - the job has finished and there is a new file for you to process'
If that is so, there may be better ways to do this. If you ha
thanks for your answer, i try some solution but it's not work
i try to add setsid and setpgrp for isolate my new process but slurm job
sleep 6secondes and reboot my machine (i test with reboot command, but we
can make other bash command, it's just example)
pid_t cpid; //process id's and p
Hi,
I'm not sure how slurm/spank handles child processes but this might be
intentional. So there might be some issues if this were to work.
You can try instead of calling system(), to use fork() + exec(). If
that still doesn't work, try calling setsid() before the exec(). I can
think of situation
Hello i have question, how run in background bash script in spank plugin ?
in my spank plugin in function : slurm_spank_task_init_privileged
i want to run this script :
system("nohup bash -c 'sleep 10 ; touch /tmp/newfile.txt' &");
i want to run in independant process this bash script, i don't