Nasty bug?

Perry Dykes pdykes@lakes.com
Sat May 19 22:49:00 GMT 2001


Have a script working on, and it nets down to this below.

When ran, tail starts dumping megabytes of data into the "exec.log" file
until I kill tail. Any ideas what is going on here? Seems something is
wrong with tail, as if I do not use (thus not in the background) by
commenting out script runs and just dumps expected content in exec.log,
the skipped loops for number of loops *5 seconds.

#!/usr/bin/bash
set -x
exec >exec.log 2>&1
echo "this is in exec.log"
tail -f exec.log &
let x=0
for junkit in a b c d e d d d d d e e d d d e e  d de e e  d d e e d d e
e d d d e e d
do
 echo Sleeping $x
 let x=x+5
 sleep 5
done
# ok, you have now tracked output of exec script content, script over,
kill the tee on console
kill -9 %1

Am I doing something pretty silly, or is this a tail/cygin/job control
bug?

Note %1 will keep advancing, so you will have to run this after a
bash.exe.

Regards,
Perry


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list