import os, signal
def check_kill_process(iTunes):
for line in os.popen("ps ax | grep " + iTunes + " | grep -v grep"):
fields = line.split()
pid = fields[0]
os.kill(int(pid), signal.SIGKILL)
import os, signal
def check_kill_process(iTunes):
for line in os.popen("ps ax | grep " + iTunes + " | grep -v grep"):
fields = line.split()
pid = fields[0]
os.kill(int(pid), signal.SIGKILL)