2012-06-12 09:41:55 |
Teppo Sulavuori |
description |
Final output generated after read from stdin is lost by empty if command exits quickly after the read.
All output comes through fine if:
-there is a lot of output after the read
-command waits for a small time after the read (no matter if waiting before or after the final output though)
-there is no read from stdin
Example scripts attached.
Commands:
empty -f -i in -o out ./script.sh
cat <out
echo Test >in |
Final output generated after read from stdin is lost by empty if command exits quickly after the read.
All output comes through fine if:
-there is a lot of output after the read
-command waits for a small time after the read (no matter if waiting before or after the final output though)
-command does not read from stdin
Example scripts attached.
Commands:
empty -f -i in -o out ./script.sh
cat <out
echo Test >in |
|