I have a python script that needs to be run in an interactive shell (it monitors for certain cancel key input events, which i dont need). I want to execute this script in the background, grab its output, then kill it after 5 seconds.
gnome-terminal -- "./script.sh > log.log"
or gnome-terminal -x bash -c "./script.sh > log.log"
doesnt work, because it's not an interactive shell...
I am using a standard ubuntu 1804 setup. How can i execute this script in an input-enabled terminal?