--- $Bill Luebkert <[EMAIL PROTECTED]> wrote:
> Arijit Das wrote:
>
> > I think you are missing out here...
>
> Let's hope not.
>
> > DIsk files are always fully-buffered, STOUT is
> line
> > buffered and STDERR is unbuffered.
>
> Not true on all systems - buffering varies on
> different tar
Arijit Das wrote:
> I think you are missing out here...
Let's hope not.
> DIsk files are always fully-buffered, STOUT is line
> buffered and STDERR is unbuffered.
Not true on all systems - buffering varies on different target
devices, system calls and OS's. UNIX 'write (2)' to a disk file
is n
I think you are missing out here...
DIsk files are always fully-buffered, STOUT is line
buffered and STDERR is unbuffered.
My problem is I have to do a kill -9 at the end. And a
process dying with kill -9 doesn't get a scope to do
its cleanup like flushing open files handles and
closing them.
-A
For me to use this, I will have to explicitly
specify/SELECT all the file handles and then execute
$| =1; which is something i don't want...cos my pgm is
huge and finding out open file handles from each
corner of it is cumbersome...
So, I am looking for a func/cmd which flushes all the
open files
Arijit Das wrote:
> Is there a Perl func which, when executed, ensures that all the open
> file descriptors of the corresponding process are flushed immediately?
>
> What I am looking for is this...
>
> #!/usr/bin/perl
>
>
> # Open lots of files here and write some data to them but d