BASH: alternatives to coproc [closed]
Solution 1:
You can used standard named pipe
instead of coproc
:
mkfifo in_data out_data
command <in_data >out_data &
exec 3> in_data 4< out_data
echo <some thing here> >&3
read <some variables here> <&4
You can used standard named pipe
instead of coproc
:
mkfifo in_data out_data
command <in_data >out_data &
exec 3> in_data 4< out_data
echo <some thing here> >&3
read <some variables here> <&4