Re: [slurm-users] run bash script in spank plugin

2018-06-04 Thread Brian Andrus
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/

Re: [slurm-users] run bash script in spank plugin

2018-06-04 Thread Tueur Volvo
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 >

Re: [slurm-users] run bash script in spank plugin

2018-06-04 Thread John Hearns
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

Re: [slurm-users] run bash script in spank plugin

2018-06-04 Thread Tueur Volvo
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

Re: [slurm-users] run bash script in spank plugin

2018-06-04 Thread John Hearns
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

Re: [slurm-users] run bash script in spank plugin

2018-06-04 Thread Tueur Volvo
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