I'd like to make/buy some piece of hardware, where I press a button, and it starts a linux shell script on my server.  I hardly know anything about electronics otherwise I'd try to just make a device like this, but wondering if there's something I can buy that is not expensive.  
To take this concept a bit further, how would I go about making that script give feedback to the button, like make it light up when the script started, then turn off when the script is stopped (something that I'd call within the script)?
Is there some kind of programmable device I can buy that would do this? Even if I have to buy the button and light separately or something. USB is preferred.
Also I've thought of just modifying a keyboard so it just sends a key stroke, but the issue with this is the computer would need to be at a terminal screen or app that is ready for that press. This needs to be something that works if it's at the login screen. It could be a service that runs in the background, or something.
			
			To take this concept a bit further, how would I go about making that script give feedback to the button, like make it light up when the script started, then turn off when the script is stopped (something that I'd call within the script)?
Is there some kind of programmable device I can buy that would do this? Even if I have to buy the button and light separately or something. USB is preferred.
Also I've thought of just modifying a keyboard so it just sends a key stroke, but the issue with this is the computer would need to be at a terminal screen or app that is ready for that press. This needs to be something that works if it's at the login screen. It could be a service that runs in the background, or something.
			
				Last edited: 
				
		
	
										
										
											
	
										
									
								
				
		
			