PKILL process
Hey guys,
I am trying to kill a process.
I am using a Python handler and having a problem killing both the parent and all the child process belonging to it.
here is what i'm trying
pkill -p $pid && (sleep 5; kill -SIGTERM $pid) && (sleep 5; kill -SIGKILL $pid)
kill $pid && (sleep 5; kill -SIGTERM $pid) && (sleep 5; kill -SIGKILL $pid)
#Where $pid is the parent process id.
I'm fairly new to this so an help would be appreciated! Thanks!!
|