<?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 Re: Input redirection loops endlessly when out of input in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743572#M944046</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Using the same file that you redirected input from, can you test the following in your shell script:&lt;BR /&gt;&lt;BR /&gt;# cat &amp;lt; inputfile&lt;BR /&gt;&lt;BR /&gt;If this does not result in an endless loop, then the problem lies with how your cobol executable handles redirected input. &lt;BR /&gt;&lt;BR /&gt;If this results in an endless loop, then it might be an issue with your input file or shell. Show us your input file.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Thu, 13 Jun 2002 01:25:17 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-06-13T01:25:17Z</dc:date>
    <item>
      <title>Input redirection loops endlessly when out of input</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743571#M944045</link>
      <description>I am invoking an application (cobol executable) from a shell script (ksh) and redirecting input (&amp;lt;) from a file. When the application requests terminal input and no more input lines are available from the input file (ie. run out of input), the application loops forever (generating error messages). It seems that the system is feeding endless NULLs (Enter's) to the application even though the ned of input file is reached. How do I make the process to abort when "out of input" condition is hit? Thank you.</description>
      <pubDate>Thu, 13 Jun 2002 01:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743571#M944045</guid>
      <dc:creator>Philip Choi</dc:creator>
      <dc:date>2002-06-13T01:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Input redirection loops endlessly when out of input</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743572#M944046</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Using the same file that you redirected input from, can you test the following in your shell script:&lt;BR /&gt;&lt;BR /&gt;# cat &amp;lt; inputfile&lt;BR /&gt;&lt;BR /&gt;If this does not result in an endless loop, then the problem lies with how your cobol executable handles redirected input. &lt;BR /&gt;&lt;BR /&gt;If this results in an endless loop, then it might be an issue with your input file or shell. Show us your input file.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 13 Jun 2002 01:25:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743572#M944046</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-13T01:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Input redirection loops endlessly when out of input</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743573#M944047</link>
      <description>Thanks for prompt response. I did as you suggested 'cat &amp;lt; file' and it did not loop. Here's the input file, very simple:&lt;BR /&gt;&lt;BR /&gt;06012002&lt;BR /&gt;06302002&lt;BR /&gt;P&lt;BR /&gt;&lt;BR /&gt;Just 3 lines. If the application requires further input due to some unforseen condition (which I am testing out), the app goes into an endless loop displaying an error message that the input was invalid (NULL). I'm using !/bin/ksh. Is this something to do with ksh? Is there a way to abort a process on end of input? Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Jun 2002 01:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743573#M944047</guid>
      <dc:creator>Philip Choi</dc:creator>
      <dc:date>2002-06-13T01:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Input redirection loops endlessly when out of input</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743574#M944048</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# cat &amp;lt; inputfile &lt;BR /&gt;&lt;BR /&gt;If this does not result in an endless loop in your script, then the problem lies with how your cobol executable handles redirected input. &lt;BR /&gt;&lt;BR /&gt;It has nothing to do with your input file or ksh. It is to do with your Cobol executable. Too bad I don't know Cobol. You can post your Cobol code up in the languages forum under HP-UX to seek further assistance on getting your executable to handle input redirection properly.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 13 Jun 2002 01:54:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-redirection-loops-endlessly-when-out-of-input/m-p/2743574#M944048</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-13T01:54:33Z</dc:date>
    </item>
  </channel>
</rss>

