sort output-so-far

gregrwm <[email protected]>
Newsgroups gmane.user-groups.linux.tclug
Message-ID <CAD+dB9CnsLMANA-QhHM3OHPAA-eB1oy_vrWz=1XDgUtpaG9OXg@mail.gmail.com>
question for bashers:

a bash command entered as a foreground job may fork, leave something in the
background, and exit to the bash prompt, and the job in the background will
print it's output whenever it has any.  So far so good.

i want to enter a command which launches 3 subcommands in parallel, wait up
to 3 seconds unless all 3 subcommands finish sooner, sort all their
output-so-far together, print it, and exit to the bash prompt at this
point, and if any of the subcommands weren't finished, leave them in the
background and let them print more output whenever they have any.

easy?  hard?

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
[email protected]
http://mailman.mn-linux.org/mailman/listinfo/tclug-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.