Auto-running a Python file within a terminal window See our page here. Auto running a program with auto restart on crash See our page here. Make the .sh file executable and then run it. To forcibly exit use: CTRL+C