I don't see how the article could help. When the Java program runs, D:\dir\javac suveryimport
it generates:
RLU: Using PropertyResourceBundle... Record: 1 Result: surveyresponse.jsp Record: 2 Result: surveyresponse.jsp Record: 3 Result: surveyresponse.jsp Record: 4 Result: surveyresponse.jsp Hit return to exit.
Without hitting the return, it won't return to the Dos prompt. Besides this, when the Java program throws no exception, with the help of hitting, I may get the right output order. If java program thorws exception(encounter error), the output is out of order which means one stream is out through terminal(bufferred), the other stream is out through STDERR (not bufferred). Any idea to walk around the problem?
run directly from dos prompt: D:\Ema\extension\win32>surveyimport Kazoo.cfg Starting proxy manager. user name = sa RLU: Using PropertyResourceBundle... Record: 1 Result: surveyresponse.jsp java.lang.RuntimeException: Junk after quoted field at rubric.data.DataParser.hasMoreElements(DataParser.java:37) at rubric.data.ImportSurveyData.importFile(ImportSurveyData.java:186) at rubric.data.ImportSurveyData.main(ImportSurveyData.java:83) Hit return to exit. run from perl: D:\emaperl>perl emaperl.pl java.lang.RuntimeException: Junk after quoted field at rubric.data.DataParser.hasMoreElements(DataParser.java:37) at rubric.data.ImportSurveyData.importFile(ImportSurveyData.java:186) at rubric.data.ImportSurveyData.main(ImportSurveyData.java:83) Starting proxy manager. user name = sa RLU: Using PropertyResourceBundle... Record: 1 Result: surveyresponse.jsp Hit return to exit.

In reply to Re: Re: output to screen by hitting return key by hdeng419
in thread Program hangs while gathering external program output by hdeng419

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.