Sujet : How to do multiple concurrent coprocs in ksh (Was: coprocs - again (Was: Different variable assignments))
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.shellDate : 25. Oct 2024, 08:05:44
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vffg08$3l80r$1@news.xmission.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
vff6l8$31j2u$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> wrote:
...
No comment on the rest, other than to say that you seem to claim that ksh
does support multiple concurrent coprocs, which I think is wrong, [...]
>
I meant that you can have several asynchroneous processes started
which are each connected to the same main shell session with pipes
for communicating. For that you have to redirect the default pipe
channels because there's of course just one option '-p' with the
commands 'read' and 'print' and you need some way to differentiate
the various channels. I just hacked a sample to show what I mean...
OK. Got it. That's how you would do it in ksh.
I think I like the bash way better, but we are just discussing details at
this point.
(Nice example, BTW)
-- I've been watching cat videos on YouTube. More content and closer tothe truth than anything on Fox.