This is a lot to get right just to avoid a 2 > $file', variable=$( cat $file )` or similar... occasionally it pays to use something not 100% optimized but simple to understand and debug...
we just tried to avoid writing file because of the read only politics for routers
but there is /tmp/ folder us i understand it is in memory so nothing wrong to wright there
Exactly! There are valid reasons for using FIFOs, but normal files are much easier entities to handle so unless you need the special guarantees FIFOs offer, file(s) on a ramdisk/tmpfs are IMHO candidates to check out first.
It seems that you added an 'e' onto /tmp/fifo(e) for the remove there. Hence the error about not existing although the idea was to use the -p check to check for existence first.
So you want to tell me that messagess like ping: bad address 'yea.rdu' ping: sendto: permission denied
goes to 1 (stdout) not to 2 (stderr) ?
but i can get these messegaes only to 2 with tis command pinga=$( ping -c $Numba $Host | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }' ) 2>>$file