Web remote control
January 21, 2008 1:51 PM
Subscribe
Best web server/language for running remote tasks?
I have some console scripts/executables that I'd like to be able to run on my home machine via a web site. What is the best method to do so?
I have tried using Apache/PHP and trying exec(), shell_exec(), system(), running perl scripts and exe's, but keep running into small quirks, ie. not grabbing script output, not running at all, hanging, etc.
I'd also like some interaction between the scripts and the web pages, ie. form variables as parameters.
Is there a recommended way to do this? This is on a windows system. I am using XAMPP but am open to using any software/language.
posted by mphuie to computers & internet (9 comments total)
In other words, I think your problem is that different Windows console apps interact with the console in different ways. Some of them may use standard input and output, some may use more-specific Windows things that your Web tools aren't understanding. Building a "driver" script will let you troubleshoot those problems without the whole Web server getting in the way.
Once you have that working, you can kick the driver script off from the Web using PHP, Perl, or pretty much anything.
posted by pocams at 2:07 PM on January 21, 2008