On 12/17/12 3:34 AM, Fiedler Roman wrote:

> That is strange: If I understand correctly, following script combined with 
> the one from first mail should still fail, but with different error. But it 
> fails in a way similar to discarding partial input, not saving it. Could it 
> be, that Ubuntu-bash works differently? Output on my  side is:
> 
> Script:
> 
> #!/bin/bash
> line=""
> while true; do
>   read -t 1 line
>   status="$?"
>   if [ "${status}" != "0" ]; then
>     echo "Read status ${status}, value \"${line}\"" >&2
>     continue
>   fi
>   if [ "${line}" != "Status: OK" ]; then
>     echo "FAILED READ: \"${line}\"" >&2
>     exit 1
>   fi
> done
> 
> # ./FragmentedSend.py | ./BashReadTest

What is FragmentedSend.py?  If I can use the same scripts you are, I can
try to reproduce it.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to