hdeng419 has asked for the wisdom of the Perl Monks concerning the following question:
The "Hit return to exit." causes the problem. When I run my perl script, it doesn't print the output to screen until I hit the return key. I guess Java program still hangs there because lack of "hit return". How to solve it? Hope I explain my problem clearly.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.
************ my script ************* #! /per/bin/perl -w use strict; my($program) = 'd:\ema\extension\win32\surveyimport d:\ema\extension\win32\Yahoo.cfg'; my(@res); open(RES, "$program |") || die "Unable to run $program: $!\n"; foreach (<RES>) { push @res, $_; #print "$_"; } print $?; print @res; close(RES); exit(0); ***************************************
Edit kudra, 2002-04-19 Changed title per ntc request
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: output to screen by hitting return key
by tachyon (Chancellor) on Apr 18, 2002 at 23:39 UTC | |
by hdeng419 (Initiate) on Apr 19, 2002 at 01:17 UTC | |
by clintp (Curate) on Apr 19, 2002 at 21:50 UTC | |
|
Re: output to screen by hitting return key
by Albannach (Monsignor) on Apr 18, 2002 at 23:40 UTC | |
by Anonymous Monk on Apr 19, 2002 at 01:13 UTC | |
by hdeng419 (Initiate) on Apr 19, 2002 at 01:28 UTC | |
by Anonymous Monk on Apr 19, 2002 at 01:50 UTC | |
by hdeng419 (Initiate) on Apr 19, 2002 at 00:56 UTC |