Yea thanks i know about that but is there a way to write a script that will always be able to find the pid of the running program and kill it at a specific time.
Lets say the pidof of vlcrpdom wrote:pidof?
What if you want it to stop at a certain time? You'll need your program to deal with delays and with specific times. It will have to find the right copy of omxplayer (or whatever) and kill that. If you run a program you wrote that then starts omxplayer (or whatever), you can back off things and interact with your own interface. This means you will be able to run the same code to start and stop any player.expandables wrote:Is there a way to tell if a program has been running for x amount of time for example 1 minute and if it has been running that long kill it.
For example I play a livestream with omxplayer and i want to stop it in a specific time frame.