Identifying files which are not currently written

view full story

http://stackoverflow.com – I want to transfer some log files from one folder to another in Ubuntu operating system. My question is how do I understand that a log file is written and no more writing is done on that? Is there any command which would help identifying that? Actually I want to do that through a shell script. Thanks. (HowTos)