I would like to be able to stop a different Touch process from within a master Touch process. I have been able to get os.kill(pid, sig) to work but I keep getting the following error although it still kills the process.
I’m not sure what value to put into the sig variable, or if using os.kill() is the right way to do it.
From researching it seems that the subprocces.Popen.kill() is the better method but I can’t find a way to use it with the pid of the Touch process only it’s name. Which won’t work because I won’t know which process to kill.
Any ideas?
thanks
Keith