LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-14-2011, 01:54 PM   #1
TDCornwell
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
catalina.out has binary data after rotate


Apologies if this is a tomcat question, but it seems like it might be something else...

I manually rotated my catalina.out file, and now the file jumps to 30+Mb and when I try to view it, less tells me it might be a binary file. It sure appears to have binary data in it, about 30meg of it.

I did the rotate via a copy:
copy catalina.out to another file
cat /dev/null > catalina.out

I have tried using echo:
echo "" > catalina.out
...also with the same result.

This application isn't something I can just bounce when necessary. It kind of appears that the original file is still there - sort of. But is it not readable text anymore.

Ideas?
Thanks in advance,
-T

SunOS 5.10
tomcat 5.5.26 (version required by app vendor)
 
Old 02-14-2011, 04:55 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Do you have swallowOutput set ?
 
Old 02-15-2011, 01:38 PM   #3
TDCornwell
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the speedy reply!

No I don't have swallowOutput set, and, after a bit more investigation, I think I see that this is an issue with tomcat logging in general, but that there are solutions.

I am dealing with a vendor-supplied tomcat installation, and have only a little control over the configuration. Perhaps I can fix this from within tomcat, perhaps not. :P
 
  


Reply

Tags
tomcat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL logging server how can i 'log rotate' all the data helptonewbie Linux - Newbie 1 03-31-2008 05:48 AM
lzw example on binary data resources kpachopoulos General 2 01-01-2007 08:53 PM
Sockets and Binary data oulevon Programming 3 04-06-2006 05:35 AM
writing binary data via the shell? zero79 Programming 3 03-04-2006 12:35 PM
need software to batch-rotate jpeg's based on exif data mfcarroll Linux - Software 3 03-07-2005 03:39 PM


All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration