I'm running a Mathematica code on a remote computer in parallel, by using
nohupcommand. It seems that there is a problem in the code and I need to stop it. Since it is working in background,
Ctrl+c is not working to terminate it. using
top command, I found
PID for the 16 cores that I am using, but
Kill PID doesn't stop the MathematicaKernel. Is there anything else I can do?
According to rakuo15's answer at https://superuser.com/questions/161531/how-to-kill-all-processes-in-linux , I forced every process to stop by using
killall5 -9. It stopped the MathematicaKernel plus everything else. If there is a better way, it would be great to know.