Is it possible to stop a pipeline when pressing a key in bash?
I am using a Rpi zero 2w and an old Rpi camera using Rpi OS (Legacy, 64-bit) Lite (i.e. a server linux) to stream a video through my local net but I want to stop the stream remotely from windows using mobaxterm, with this code I stream well but it do not detect the key press: