LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file size automatically truncating (https://www.linuxquestions.org/questions/linux-newbie-8/file-size-automatically-truncating-4175498953/)

divyashree 03-21-2014 04:49 AM

file size automatically truncating
 
In a perl script I am storing the output to a logfile with STDOUT and STDERR. But the file size automatically trucating when it reached 22Kb. I want it as 1MB. Is there any system variable which is controlling the size ?

pan64 03-21-2014 05:06 AM

I do not think so (there is no such system variable). You can easily try to create files with perl or awk or whatever to check it.

divyashree 03-21-2014 07:35 AM

Quote:

Originally Posted by pan64 (Post 5138598)
I do not think so (there is no such system variable). You can easily try to create files with perl or awk or whatever to check it.

I was using ">" instead of ">>" with STDOUT.

szboardstretcher 03-21-2014 07:39 AM

Quote:

Originally Posted by divyashree (Post 5138657)
I was using ">" instead of ">>" with STDOUT.

Completely understandable mistake. Happens all the time.

:hattip:


All times are GMT -5. The time now is 04:08 AM.