Jonathan has asked for the wisdom of the Perl Monks concerning the following question:
# Open co-process co_process_program |& while read -p output do if ((input_required == true)) then input="just do some work"; print -p $input; fi if [[ $output = +(*done*) ]] then input="do something else"; print -p $input; fi if [[ $output = +(*finished*) ]] then input="time to go"; print -p $input; break; fi done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: co-processes
by ZZamboni (Curate) on May 05, 2000 at 20:32 UTC | |
|
RE: co-processes
by Jonathan (Curate) on May 07, 2000 at 06:32 UTC |