I want to stop a while true loop when a specific or any key is pressed.
I know I can ctrl-c the script but I am locking tables in my MySql database, and I doesn't want to unlock them in the beginning of the script because i want to be able to run multiple instance of the script.
Thank you for any insight