Web Hosting Talk







View Full Version : Running a process in the background


Dogtanian
12-22-2004, 06:17 PM
Ok this is for windows 2003, not linux

I was wondering how you can run a program in a background on windows 2003 termail, I telnet in, say if you run a server, eg: soldat i excute the server but when i close the termail window it closes I tryed adding & to the end and it does nothin, how can I run a program in the background and it keeps running when you closed the window

TristanH
12-24-2004, 06:33 AM
Digtanion,

You should be able to connect to the physical console of the server with remote desktop using the /console option of mstsc.exe.

From your local machine's command prompt, run

mstsc /console

then connect as normal and run whatever you need. When you close the rdesktop window the console will be locked and your programs will continue running.

maxknight
12-24-2004, 08:11 AM
Try using srvany.exe which can be found in the resource kit. Using this utility you can add this program as a service. No matter if you log off or reboot, the program will continue to run in the background.

Dogtanian
12-24-2004, 09:13 AM
thanks very much