I have been looking and couldnt find clear clues to verify what I am deducing from a script given to me.
so file.txt is an opened file (by the file descriptor 3) and is constantly adding a new line by a script that records timestamp. Does the following piece make into the while loop each time a new line is added to the file?
exec 3 < /path/file.txt
while read <&3
command
command..
done
So as long as I dont close the file descriptor, a new line added to my file.txt will always activate the while loop, right?
Please help me clear this up. Thanks