[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
the fifo fd issue
From: |
Alex fxmbsw7 Ratchev |
Subject: |
the fifo fd issue |
Date: |
Sat, 2 Oct 2021 12:53:40 +0200 |
i did now *try* and failed with 2 fifos, it hangs, i ask for help..
s=( ab34 str87 ) ; awksplit() { gawk -v FS= -v RS=\\0 -v ORS=\\0 -e '{
gsub( /./, "\\\\& " ) ; print ; fflush() }' "$@" ; } ; serin=sersockin
serout=sersockout ; eval {rm\ -rf,mkfifo}' "$serin" "$serout" ;' ; exec
3<$serout 4>$serin ; sa() { awksplit >&3 <&4 & } ; sa ; ser() { (( l = $#
- 1 )) ; printf %s\\0 "${@:2}" >&4 ; mapfile -u 3 -n $l -d '' -t a ;
declare -ga "$1=( ${a[@]} )" ; } ; ser serial "$s" ; kill $! ; declare -p a
serial
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- the fifo fd issue,
Alex fxmbsw7 Ratchev <=