I need to write a bash script in a linux machine with the follow redirection.
echo commands > cmd_receives_commands > fifo > awk_parser > tcp_socket
I verified that for the "tcp_socket" works the construct:
echo 3<> /dev/tcp/address/port cmd >&3 echo 3<&-
For the rest of the script I tried this:
mkfifo fifo ./parser.awk <&4 > out exec 4>fifo exec 3> >(cmd1 >&4) echo to_cmd1 >&3 echo end $(date +%s) >&4 exec 3<&- exec 4<&-
but they doesn't work, because the file out isn't written.