Is it possible a programmatic killall roslaunch in 60 minutes after pushing a button?
Hello, I built a small user interface using Qt5
with two buttons.
With one button I am starting a lidar VLP16
and its related user interface.
With the other button I killall roslaunch
. The two buttons use a QProcess
to trigger two executable .sh
files.
I would like the user to push the button to kill all processes but shut down after 60 minutes. Currently as the user push the button, all processes shut down immediately.
After doing some research I ended up with writing a small executable like the following below:
#!/bin/bash
killall roslaunch && sleep 3600
pkill tuginterface
But I get the same exact result, which is all processes are killed immediately right after pushing the button.
Is there a way to to have a bash executable .sh
file doing this job or do I have to necessarily implement a count down in the user interface? I opted for the executable as I thought it would be a quick way to do it.
Thank you very much for pointing in the right direction to solve this problem.