[Gllug] Checking if a file has finished being written?

Andy Young andy.young at bbc.co.uk
Tue Jan 28 13:13:35 UTC 2003


Dear all,

Many thanks for your feedback.

Huw ... thanks for the "heads up" but you're right, that's a little complicated for my need right now. I'll tuck that away in the "look at it later" corner ;)

I'm going to check out fuser / lsof to see if the program behaves in a nice open > write > close manner, and if it does I'm in business.

Thanks again,

Andy.

Andy Young
Design Systems Administrator
BBC Post Production

*	Work:	+44 (0) 20 8225 8388 
*	Mobile:	+44 (0) 776 433 5702
*	Fax: 	+44 (0) 20 8576 1639
*  	Room 3501, Stage 5, Television Centre, Wood Lane, London, W12 7RJ
*	mailto:andy.young at bbc.co.uk
 *	http://www.bbcresources.com/postproduction




> -----Original Message-----
> From:	Andy Young 
> Sent:	Monday, January 27, 2003 2:22 PM
> To:	gllug at linux.co.uk
> Subject:	[Gllug] Checking if a file has finished being written?
> 
> Hi all,
> 
> I wonder if anyone can tell me a way to check in a shell script if a file
> has finished being written?
> 
> I want to automatically transcode from one type of video to another, but
> there is a likely chance of hitting a file mid write if I just do this on a
> timed basis.
> 
> I unfortunately have no control over the source application setting some
> sort of flag file to show the write is complete.
> 
> Any advice much appreciated.
> 
> Andy.
> 
> Andy Young
> Design Systems Administrator
> BBC Post Production
> 
> *	Work:	+44 (0) 20 8225 8388 
> *	Mobile:	+44 (0) 776 433 5702
> *	Fax: 	+44 (0) 20 8576 1639
> *  	Room 3501, Stage 5, Television Centre, Wood Lane, London, W12 7RJ
> *	mailto:andy.young at bbc.co.uk
>  *	http://www.bbcresources.com/postproduction
> 
> 
> 
> BBCi at http://www.bbc.co.uk/
> 
> This e-mail (and any attachments) is confidential and may contain 
> personal views which are not the views of the BBC unless specifically 
> stated.
> If you have received it in error, please delete it from your system, do > not use, copy or disclose the information in any way nor act in 
> reliance on it and notify the sender immediately. Please note that the 
> BBC monitors e-mails sent or received. Further communication will 
> signify your consent to this.
> 
> 
> -- 
> Gllug mailing list  -  Gllug at linux.co.uk
> http://list.ftech.net/mailman/listinfo/gllug


BBCi at http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain 
personal views which are not the views of the BBC unless specifically 
stated.
If you have received it in error, please delete it from your system, do 
not use, copy or disclose the information in any way nor act in 
reliance on it and notify the sender immediately. Please note that the 
BBC monitors e-mails sent or received. Further communication will 
signify your consent to this.


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list