Page 1 of 1

Remotely Rebooting a Program

Posted: Mon Apr 12, 2004 9:56 pm
by Zorth
Hey all,

I've been trying recently to allow the Staff of a game I am working on to reboot the program remotely while the program is down. First of all, the game is on Windows XP. I installed pskill which closes a process, and made a web link which leads to that and it works fine. However, sometimes when the program crashes it brings up a window that asks to either cancell or log on to the debugger, and it will interfere with closing the process. Any suggestions on that?

I also had alot of trouble with getting system() or exec() to start up the process again. Every time I tried to use either, PHP would hang. I hear that you can pipe the output or whatnot to a file which will allow PHP to not hang? Though I also here that exec() does not even produce output. I'm completely lost here and would appreciate any help with this :)

Lastly I remember someone posting saying that Windows XP provides a way for people to remotely shutdown and restart a process. If anyone knows anything more about that, I'd be extremely gratefull.

Thank you,

Zorth.

Posted: Tue Apr 13, 2004 7:29 am
by Pyrite
Can't you just open up RDP and allow them to RDP into the XP machine and control it that way?

Posted: Tue Apr 13, 2004 1:50 pm
by Zorth
I wish I knew how. I suppose that is the part of XP I heard someone mention. If it's possible, that would probably work too.

Posted: Tue Apr 13, 2004 2:03 pm
by Pyrite
Yes, it is part of XP. Right click My Computer, go to Properties, and then Remote tab and check the box that says allow users of this computer to login remotely. Then the client is in the start menu under Accessories->Communications ...

Posted: Wed Apr 14, 2004 1:43 pm
by Zorth
And is there a specific port which must be open to allow connections?

Posted: Wed Apr 14, 2004 4:56 pm
by Pyrite
Yea, RDP uses 3389 . Might have to disable ICF (Internet Connection Firewall) on the XP machine that you are trying to RDP to.