I have a python program called main.py program and I need to run another program in a background shell called ringToneCheck.py, so my main.py is like this:
import os
os.system("python ringToneCheck.py &")
but the problem is that when I exit my program with sys.exit() command I still have the ringToneCheck.py running in shell when I check my running processes.
what should I do to exit and kill ringToneCheck.py from my background shell completely??