2010-05-18 6 views
0

J'ai un problème avec cruisecontrol où un script ant s'exécute un fichier bat qui ne me renvoie pas l'invite. De ce fait, le projet de cruisecontrol continue de fonctionner pour toujours jusqu'à ce que je redémarre le contrôle de croisière. Comment puis-je résoudre ça?Exécution du fichier bat et retour de l'invite

Il est un startup.bat de Wowza (Streaming Server) que j'exécution:

@echo off 

call setenv.bat 

if not %WMSENVOK% == "true" goto end 

set _WINDOWNAME="Wowza Media Server 2" 
set _EXESERVER= 
if "%1"=="newwindow" (
set _EXESERVER=start %_WINDOWNAME% 
shift 
) 

set CLASSPATH="%WMSAPP_HOME%\bin\wms-bootstrap.jar" 

rem cacls jmxremote.password /P username:R 
rem cacls jmxremote.access /P username:R 

rem NOTE: Here you can configure the JVM's built in JMX interface. 
rem See the "Server Management Console and Monitoring" chapter 
rem of the "User's Guide" for more information on how to configure the 
rem remote JMX interface in the [install-dir]/conf/Server.xml file. 

set JMXOPTIONS=-Dcom.sun.management.jmxremote=true 
rem set JMXOPTIONS=%JMXOPTIONS% 
    -Djava.rmi.server.hostname=192.168.1.7 
rem set JMXOPTIONS=%JMXOPTIONS% 
    -Dcom.sun.management.jmxremote.port=1099 
rem set JMXOPTIONS=%JMXOPTIONS% 
    -Dcom.sun.management.jmxremote.authenticate=false 
rem set JMXOPTIONS=%JMXOPTIONS% 
    -Dcom.sun.management.jmxremote.ssl=false 
rem set JMXOPTIONS=%JMXOPTIONS% 
    -Dcom.sun.management.jmxremote.password.file= 
     "%WMSCONFIG_HOME%/conf/jmxremote.password" 
rem set JMXOPTIONS=%JMXOPTIONS% -Dcom.sun.management.jmxremote.access.file= 
     "%WMSCONFIG_HOME%/conf/jmxremote.access" 

rem log interceptor com.wowza.wms.logging.LogNotify 
    - see Javadocs for ILogNotify 

%_EXESERVER% "%_EXECJAVA%" %JAVA_OPTS% %JMXOPTIONS% 
-Dcom.wowza.wms.AppHome="%WMSAPP_HOME%" 
-Dcom.wowza.wms.ConfigURL="%WMSCONFIG_URL%" 
-Dcom.wowza.wms.ConfigHome="%WMSCONFIG_HOME%" 
-cp %CLASSPATH% com.wowza.wms.bootstrap.Bootstrap start 

:end 

Répondre

1

D'un premier coup d'oeil, il semble que l'ajout d'une commande start à la ligne où le serveur est démarré pourrait aider, à savoir:

start "" %_EXESERVER% "%_EXECJAVA%" %JAVA_OPTS% %JMXOPTIONS% 
-Dcom.wowza.wms.AppHome="%WMSAPP_HOME%" 
-Dcom.wowza.wms.ConfigURL="%WMSCONFIG_URL%" 
-Dcom.wowza.wms.ConfigHome="%WMSCONFIG_HOME%" 
-cp %CLASSPATH% com.wowza.wms.bootstrap.Bootstrap start 
+0

Si je fais cela, une nouvelle fenêtre, cmd ouvre où le serveur Wowza est démarré, mais dans la fenêtre de cmd d'origine, l'invite n'est pas rendu ... (thx) –

+0

Comment démarrer 'startup.bat'? Si cela provient d'un autre fichier chauve-souris, appelez-le avec 'appel startup.bat' ou utilisez la commande cmd.exe avec l'option/C. –

+0

Il est fait à l'aide de fourmi avec: \t \t \t \t \t \t \t \t

Questions connexes