A simple problem with an answer which eludes me
May 16th, 2008 by
crazyskills
So I’ve got this batch file to keep my mp3 daemon running on the crazyskills radio server. (It’s not the most stable of programs…) Here is the content of that file:
@echo off
title crazyskills mp3d watchdog
echo *********************************************
echo ** crazyskills mp3d watchdog **
echo *********************************************
echo ** STARTING SERVER - (%time%) : (%date%)
:begin
start /wait /abovenormal c:\gnump3d\bin\gnump3d.bat
echo ** RESTARTING SERVER - (%time%) : (%date%)
goto begin
Now my understanding of this nifty little batch file I wrote is that once the process is terminated, it should fire it right back up. But instead, once the file terminates, it leaves me at a command prompt inside my new window. What am I missing?
I wrote a similar program for the Counter Strike server which did exactly what I wanted it to. Is the problem that I am calling another batch file? Would it solve the problem to paste (and edit paths, etc.) the contents of the called batch file into my watchdog? Or do I need to add a line to kill the window after the ’start’ line?
TIA
Orb
Posted in Uncategorized |
No Comments »