Ok so I have
sudo examplecommand sudo examplecommand 2
I want to run any of these command blindly in the pi@raspberry terminal.
I never found a tutorial for it, only found tutorials for shut-down buttons and stuff similar to that, which all work via Python.
The best case scenario is where I power the Pi on and when I press 1 button
sudo examplecommand runs and when I press another button
The buttons could be from a keyboard or just from a button attached to a GPIO pin, (not GPIO 4 though)
How can I do this?