tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r922223 - /tomcat/trunk/bin/catalina.bat
Date Fri, 12 Mar 2010 15:14:57 GMT
In 12/03/2010, mturk@apache.org <mturk@apache.org> wrote:
> Author: mturk
>  Date: Fri Mar 12 11:38:43 2010
>  New Revision: 922223
>
>  URL: http://svn.apache.org/viewvc?rev=922223&view=rev
>  Log:
>  Suppress anoying Terminate batch job prompt when hitting CTRL+C. Note however that it
leaves the file named yes in the bin directory

The process running Tomcat may not have write access to the bin dir.

So either create a permanent file in the bin directory, or use a pipe:

echo Y | call  "%~f0" %*

>  Modified:
>     tomcat/trunk/bin/catalina.bat
>
>  Modified: tomcat/trunk/bin/catalina.bat
>  URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/catalina.bat?rev=922223&r1=922222&r2=922223&view=diff
>  ==============================================================================
>  --- tomcat/trunk/bin/catalina.bat (original)
>  +++ tomcat/trunk/bin/catalina.bat Fri Mar 12 11:38:43 2010
>  @@ -78,6 +78,17 @@ rem
>   rem $Id$
>   rem ---------------------------------------------------------------------------
>
>  +rem Suppress Terminate batch job on CTRL+C
>  +if not ""%1"" == ""run"" goto mainEntry
>  +if exist "%~dp0run" goto mainEntry
>  +echo Y >"%~dp0run"
>  +echo Y >"%~dp0yes"
>  +call "%~dpnx0" %* <"%~dp0yes"
>  +rem Not actually needed
>  +exit /B 1
>  +:mainEntry
>  +del /Q "%~dp0run" >NUL 2>&1
>  +
>   rem Guess CATALINA_HOME if not defined
>   set "CURRENT_DIR=%cd%"
>   if not "%CATALINA_HOME%" == "" goto gotHome
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>  For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message