Jean-Philippe Ayanides <[EMAIL PROTECTED]> writes: > Here is the script : > -------------------------------- > #!/bin/bash > > temp=/tmp/file.$$ > cat > $temp << EOF > 00000000 00000 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > 12345678 01234 6789012345678901234567890123456789012345678901234 > 12345678 01234 6789012345678901234567890123456789012345678901234 > 12345678 01234 6789012345678901234567890123456789012345678901234 > 12345678 01234 6789012345678901234567890123456789012345678901 abcd > 12345678 01234 6789012345678901234567890123456789012345678901234 > 12345678 01234 6789012345678901234567890123456789012345678901234 > 12345678 01234 6789012345678901234567890123456789012345678901234 > 12345678 01234 6789012345678901234567890123456789012345678901 efghi > EOF > > cat $temp | ( while read data; > do > echo "data=$data" > mplayer "inexistant-file.avi" 2>/dev/null 1>&2
Most likely mplayer is reading from stdin. You should redirect its input to avoid that. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash