I am trying to use my remote controll with tvtime and asign a key for alevt teletext application.
If I try to start alevt with "subprocess.Popen(["alevt","-vbi /dev/vbi0"])", alevt returns invalid option even if the same command works typed in console.
If I try "subprocess.Popen(["alevt"])", it starts the application, but I am not sure how to close it in the Python script and it leaves zombie processes if closed using mouse.
I am not sure how to track the pid of the new application to use it for closing.
I am not familiar with Python, but I guess that a variable in the script would be treated as local and it's value would be lost at the end of the script.
Any suggestion?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to use my remote controll with tvtime and asign a key for alevt teletext application.
If I try to start alevt with "subprocess.Popen(["alevt","-vbi /dev/vbi0"])", alevt returns invalid option even if the same command works typed in console.
If I try "subprocess.Popen(["alevt"])", it starts the application, but I am not sure how to close it in the Python script and it leaves zombie processes if closed using mouse.
I am not sure how to track the pid of the new application to use it for closing.
I am not familiar with Python, but I guess that a variable in the script would be treated as local and it's value would be lost at the end of the script.
Any suggestion?