run command line on server from webpage button

run command line on server from webpage button

  
Is there a way to run a command line (or batch file) from a button press on a webpage?  We have a 3rd party piece of software on our server that can crash under certain circumstances (an issue they are fixing) that we would like to have the ability to restart that application (just a command line run) from a button on our website.  Is there a good way to do this?
Well, running an executable from a web page is of course a big no-no with regards to security risks etc. That said, you can write an extension that does this. You could look in the forge at the Html2PdfConverter, which afaik does the conversion by calling an external tool.