I am guessing... Somewhere in the script there should be a ">> catalina.out" to append to catalina.out. Change that to "> catalina.out" so that the old file is automatically rewritten. Or else you may use rotatelogs program that comes with apache http server. See http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
++Vamsi On Feb 11, 2008 3:47 PM, persistence k <[EMAIL PROTECTED]> wrote: > Thanks Mr.David . > > Will you please send me a sample start up script to handle renaming or > deleting the old catalina.out file. > > > Regards, > Persistence > > > > > On 2/11/08, David Smith <[EMAIL PROTECTED]> wrote: > > Then you should modify the startup script to handle renaming or deleting > > the old file before starting tomcat. Catalina.out itself is just the > > redirected standard output from tomcat and tomcat has no control over > > what the OS does with what it spews out. > > > > As a better alternative, configure your favorite logging framework to > > provide rolling log files. There are lots of messages in the archives > > regarding log4j and dealing with the classloader system in tomcat if you > > want to go that direction. > > > > --David > > > > persistence k wrote: > > > Yes, Mr.David. I want each time tomcat's redirects its standard output > to > > > catalina.out file, > > > this file should reflect that change and during tomcat start up all > the > > > content in the file should be deleted, instead of appending it to > previous > > > messages. > > > > > > Right now I'm closing and reopening the file to notice the changes in > it. > > > Instead I would like to see the file reloaded each time tomcat > redirects > > its > > > standard output to > > > that file, just as it happens in windows. > > > > > > Please suggest me a solution for this. > > > > > > Thanks > > > Persistence. > > > > > > > > > > > > > > > On Feb 7, 2008 4:08 PM, David Smith <[EMAIL PROTECTED]> wrote: > > > > > > > > >> I'm not clear on what you mean by 'reloading' as catalina.out is just > a > > >> text file accepting tomcat's redirected standard output. It should > > >> simply be appended to as messages are generated. Are you saying you > > >> want the file to be deleted and started fresh on every tomcat > startup? > > >> > > >> --David > > >> > > >> persistence k wrote: > > >> > > >>> Hi, > > >>> > > >>> whenever I restart the tomcat in linux, the file ' catalina.out ' is > not > > >>> automatically reloading just like the file ' std.out ' does in > windows. > > >>> > > >>> ' catalina.out ' file containing all the 'System.out ' statements > > >>> > > >> printed > > >> > > >>> from the day tomcat > > >>> was installed in my linux system. > > >>> > > >>> Please tell me a solution so that the file ' catalina.out ' gets > > >>> reloaded for each and every time I made change in WEB UI. > > >>> > > >>> -Persistence > > >>> > > >>> > > >>> > > >> --------------------------------------------------------------------- > > >> To start a new topic, e-mail: users@tomcat.apache.org > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > >> > > > > > > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >