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 handles as and when this func/cmd is executed. -Arijit --- Petr Vileta <[EMAIL PROTECTED]> wrote: > $|=1; > > maybe this help you. > > > Petr Vileta, Czech republic > (My server reject all messages from Yahoo and > Hotmail. Send me your mail > from another non-spammer site please.) > > ----- Original Message ----- > From: "Arijit Das" <[EMAIL PROTECTED]> > To: <activeperl@listserv.ActiveState.com>; > <perl-unix-users@listserv.ActiveState.com> > Sent: Thursday, August 25, 2005 8:25 PM > Subject: Flushing all open file descriptors... > > > > 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 do not flush any > > of them... > > ... > > .... > > a_func_that_flushes_all_open_files(); > > > > kill -9, getpgrp(); > > > > > > Thanks, > > Arijit > > > > > > > > --------------------------------- > > Start your day with Yahoo! - make it your home > page > > > -------------------------------------------------------------------------------- > > > > _______________________________________________ > > ActivePerl mailing list > > ActivePerl@listserv.ActiveState.com > > To unsubscribe: > http://listserv.ActiveState.com/mailman/mysubs > > _______________________________________________ > ActivePerl mailing list > ActivePerl@listserv.ActiveState.com > To unsubscribe: > http://listserv.ActiveState.com/mailman/mysubs > Arijit Das Infosys Technologies Ltd. Mangalore - 575 006, India Cell Phone: 9448135200 E-Mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs