I've set of processes with name process_name
which is substring of execution.
I'm using following command to kill the process. I want to do this natively in python is there any way to do it without using subprocess.run()
or installing any other dependency.
Command I'm using
pkill -f 'process_name'
System: 18.04