in reply to Re: Long Process Waits Until End to Display Results
in thread Long Process Waits Until End to Display Results
I've actually used the exact code that's in the article you reference:
my $command = "make -i -j 10 -f upgrade.make"; unless (open F, "-|") { open STDERR, ">&=1"; exec "$command"; } while (<F>) { $buffer .= $_; $cache->set($session, [0, $buffer]); }
And it still waits until the process completes to give me back any output whereas if I run $command from the command line it gives me real-time feedback.
CT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Long Process Waits Until End to Display Results
by revdiablo (Prior) on Dec 07, 2004 at 19:14 UTC | |
by C_T (Scribe) on Dec 07, 2004 at 19:20 UTC | |
by revdiablo (Prior) on Dec 07, 2004 at 19:28 UTC | |
by tilly (Archbishop) on Dec 08, 2004 at 01:24 UTC | |
by C_T (Scribe) on Dec 09, 2004 at 19:12 UTC | |
|