I’m trying to create a script or something to trigger a shell command. (like ‘sudo service restart X’)
I did it with a switch, but I do not want a switch because it has 2 commands (on and off), I want just a button ‘Activate’ or something similar to trigger just one command.
Can you give me a short example of how I can do something like this?