So I'm running a python script: It starts a logging program in the background Does a bunch of stuff. Then stops the logging program.
So I have two questions: 1) I understand to run a background program, I could call: os.system("test_log_prog &") but can I also do: os.system("test_echo_prog > logfile.log &") or something equivalent?
2) How can I close test_echo_prog? for the program, I was using pkill "test_log_prog" but for some reason it doesn't work when using > logfile.log.....
Thanks in advance!
Cheers!