off topic: combined output of concurrent processes
inode0
inode0 at gmail.com
Sat Apr 14 14:50:19 UTC 2012
On Fri, Apr 13, 2012 at 10:31 PM, Amadeus W.M. <amadeus84 at verizon.net> wrote:
>>
>> [egreshko at meimei test]$ grep ^A out | wc
>> 97 97 582
>> [egreshko at meimei test]$ grep ^B out | wc
>> 94 94 564
>> [egreshko at meimei test]$ grep ^C out | wc
>> 96 96 576
>
> I replicated this and indeed I don't get 100 lines of As, Bs and Cs.
> That's a new problem. Why don't I get all? Shouldn't all 300 echos have
> been launched when the script completes? And if the script has completed
> and there are echos running in the background, they should complete, no?
>
> I put a "wait" at the end of the script to wait for the completion of the
> echos, but I still get fewer lines than 100 per A, B, C.
>
> This is aggravating. So not all echos get executed (why?), yet I still
> don't see the output mingled.
I admit I am not really clear on what output you want to get but does
this give the output you want?
./ioTest.sh | cat > out
John
More information about the users
mailing list