Re: How to determine if a file is in use

2009-11-03 Thread Rick Stevens
Donald Russell wrote: Another system uses FTP to drop files in a directory for me to process. I have a bash script to process the incoming files. The script is started by cron periodically. There's a problem if the FTP transfer is still in progress because the process begins reading the file

Re: How to determine if a file is in use

2009-11-03 Thread Patrick O'Callaghan
On Tue, 2009-11-03 at 13:31 -0800, Donald Russell wrote: Another system uses FTP to drop files in a directory for me to process. I have a bash script to process the incoming files. The script is started by cron periodically. There's a problem if the FTP transfer is still in progress because

Re: How to determine if a file is in use

2009-11-03 Thread Christopher K. Johnson
Donald Russell wrote: Another system uses FTP to drop files in a directory for me to process. I have a bash script to process the incoming files. The script is started by cron periodically. There's a problem if the FTP transfer is still in progress because the process begins reading the file

Re: How to determine if a file is in use

2009-11-03 Thread Richard England
On 11/03/2009 01:31 PM, Donald Russell wrote: Another system uses FTP to drop files in a directory for me to process. I have a bash script to process the incoming files. The script is started by cron periodically. There's a problem if the FTP transfer is still in progress because the process

How to determine if a file is in use

2009-11-03 Thread Donald Russell
Another system uses FTP to drop files in a directory for me to process. I have a bash script to process the incoming files. The script is started by cron periodically. There's a problem if the FTP transfer is still in progress because the process begins reading the file even though it isn't

Re: How to determine if a file is in use

2009-11-03 Thread Patrick O'Callaghan
On Tue, 2009-11-03 at 19:23 -0800, Richard England wrote: On 11/03/2009 01:31 PM, Donald Russell wrote: Another system uses FTP to drop files in a directory for me to process. I have a bash script to process the incoming files. The script is started by cron periodically. There's a

Re: How to determine if a file is in use

2009-11-03 Thread Cameron Simpson
On 03Nov2009 13:31, Donald Russell russell@gmail.com wrote: | Another system uses FTP to drop files in a directory for me to process. | I have a bash script to process the incoming files. The script is started by | cron periodically. | | There's a problem if the FTP transfer is still in

Re: How to determine if a file is in use

2009-11-03 Thread Donald Russell
On Tue, Nov 3, 2009 at 20:49, Cameron Simpson c...@zip.com.au wrote: On 03Nov2009 13:31, Donald Russell russell@gmail.com wrote: | Another system uses FTP to drop files in a directory for me to process. | I have a bash script to process the incoming files. The script is started by | cron