<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Perl - Flush file handler without print its content in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-flush-file-handler-without-print-its-content/m-p/4445768#M682834</link>
    <description>Is there a way to flush a filehandler in perl without print it?&lt;BR /&gt;&lt;BR /&gt;I'm using open inside of fork command inside foreach command:&lt;BR /&gt;foreach (){&lt;BR /&gt;fork(){&lt;BR /&gt;open ($cmd);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;and if I'm printig the filehandler content - the script waits till the file ends before it start an new loop (of the foreach) - I want to avoid this - I need to fork the commands one after the another without waitting, but if I'm not printing the filehandler content - the buffer is getting full and the program get stuck.&lt;BR /&gt;&lt;BR /&gt;Any idea how to solve this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Jun 2009 05:34:27 GMT</pubDate>
    <dc:creator>kazerm</dc:creator>
    <dc:date>2009-06-24T05:34:27Z</dc:date>
    <item>
      <title>Perl - Flush file handler without print its content</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-flush-file-handler-without-print-its-content/m-p/4445768#M682834</link>
      <description>Is there a way to flush a filehandler in perl without print it?&lt;BR /&gt;&lt;BR /&gt;I'm using open inside of fork command inside foreach command:&lt;BR /&gt;foreach (){&lt;BR /&gt;fork(){&lt;BR /&gt;open ($cmd);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;and if I'm printig the filehandler content - the script waits till the file ends before it start an new loop (of the foreach) - I want to avoid this - I need to fork the commands one after the another without waitting, but if I'm not printing the filehandler content - the buffer is getting full and the program get stuck.&lt;BR /&gt;&lt;BR /&gt;Any idea how to solve this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jun 2009 05:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-flush-file-handler-without-print-its-content/m-p/4445768#M682834</guid>
      <dc:creator>kazerm</dc:creator>
      <dc:date>2009-06-24T05:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Perl - Flush file handler without print its content</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-flush-file-handler-without-print-its-content/m-p/4445769#M682835</link>
      <description>You can set a filehandle to autoflush&lt;BR /&gt;&lt;BR /&gt; use IO::Handle;&lt;BR /&gt; $fh-&amp;gt;autoflush (1);&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt; select ((select ($fh), $| = 1)[0]);&lt;BR /&gt;&lt;BR /&gt;Either that, or flush forced&lt;BR /&gt;&lt;BR /&gt; use IO::Handle;&lt;BR /&gt; $fh-&amp;gt;flush;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 24 Jun 2009 07:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-flush-file-handler-without-print-its-content/m-p/4445769#M682835</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2009-06-24T07:27:45Z</dc:date>
    </item>
  </channel>
</rss>

