I want to start a program on a friend's machine from over the Internet.
Hey all, I pray that someone here can help. My friend is running a Counter-Strike server on his home machine. The problem is that sometimes the server (program) will crash. Currently he is also running VNC Server on the machine, which allows me to access his machine remotely. But if neither of us is around, it cannot be restarted. So, what I would like to do is create a way to start that program remotely, probably using a Web interface. I have a Web server elsewhere from which I can execute Perl scripts, CGI scripts, etc. My friend doesn't want to just give a bunch of people full access to his machine, so using VNC is no longer a possibility. Anyone know what I would need to do to get going on this? I am pretty resourceful, so general descriptions to point me in the right direction would get me moving along just fine. Moderator: If you think I would do better with this in the Programming and Scripting Forum, please feel free to move the thread. THANKS!!!!!!
Executing a command via PHP
I do something like you're taliking about with my Authorize.net processing script in PHP. It must issue a command to Curl.exe to actually send the transaction. The code is very simple:
<?php
exec("c:/somedir/prog.exe");
?>
I'm not sure if you meant you needed to restart the Counterstrike Server or the Webserver. If you need to restart the Counterstrike Server & you have a working webserver on that machine, the above script, or some variation, might just work for you.