Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to keep the log file a fixed size
Name: mike Date: September 12, 2001 at 07:35:04 Pacific
Comment:
Hi there,
I have a program which will write some log information to a log file. The problem is this log file grows too fast. But the log information is necessary to me. What I want to do is trying to keep the log file in a fixed size (like 4MB), and if the file size reach the file limit, then delete some old log information and attach the new information at the end of the file.
Can anyone tell me if it is possible to do that, and better how to do it?
Summary: Hello, how do i get the last field Ex: files are with this formats abc_xyz_20041232 abc_20041001 abbc_xyz_rrr_20041013 i tried with cut command but i doono how to get the last filed the file names has...
Summary: I have a program which will write some log information to a log file. The problem is this log file grows too fast. But the log information is necessary to me. What I want to do is trying to keep the l...
Summary: Hi, i have ksh script to fetch the data from oracle database and store the output in a .xls or .csv file. But the output having more then 70,000 rows. How can i store those files in .xls or csv files....