rogue90 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks - long time listener, first time caller.
I have a simple script that outputs simple text to a file. Easy enough. When that file nears 50k, I want to close it and start outputting to a new file. stat won't work because the output is in buffer and not actually written to the file yet. I can't seem to find a solution other than processing the file again after I close it.
Any ideas? Happy Friday :)
-r90
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: limit output filesize
by Transient (Hermit) on Jul 08, 2005 at 18:57 UTC | |
by rogue90 (Novice) on Jul 08, 2005 at 19:12 UTC | |
by bart (Canon) on Jul 08, 2005 at 19:28 UTC | |
by rogue90 (Novice) on Jul 08, 2005 at 19:45 UTC | |
by rogue90 (Novice) on Jul 08, 2005 at 19:37 UTC | |
Re: limit output filesize
by davidrw (Prior) on Jul 08, 2005 at 18:57 UTC | |
Re: limit output filesize
by QM (Parson) on Jul 08, 2005 at 18:58 UTC | |
Re: limit output filesize
by Forsaken (Friar) on Jul 09, 2005 at 05:37 UTC | |
Re: limit output filesize
by TedPride (Priest) on Jul 09, 2005 at 07:08 UTC |
Back to
Seekers of Perl Wisdom