In 12/03/2010, mt...@apache.org <mt...@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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org