Re: [Hampshire] Launching a command from the web

Inizio della pagina

Reply to this message
Autore: Vic
Data: 2009-02-12 10:52 -000
To: hampshire
Oggetto: Re: [Hampshire] Launching a command from the web

> They would
> enter a 4 digit number in the box (which would ideally be checked that it
> was a 4 digit number. E.g. 1234) and then a dos command would be run e.g.
> C:\program files\importantapp\importantapp.exe stream 1234 3 start (or
> stop depending on which button was pressed)


Integrating with DOS might be difficult (I don't know if Aapche runs atop
DOS), but running some command-line stuff is easily achievably by way of
CGI. It's as simple as adding the +ExecCGI override in your Apache
config...

Vic.