Re: File Locking
From: Joe Durusau (joseph.a.durusau@lmco.com)
Date: 04/15/03
- Previous message: Gilles Vautour: "File Locking"
- In reply to: Gilles Vautour: "File Locking"
- Next in thread: Barry Margolin: "Re: File Locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Joe Durusau <joseph.a.durusau@lmco.com> Date: Tue, 15 Apr 2003 11:42:13 -0400
Gilles Vautour wrote:
>
> We have a situation where a script collects files uploaded via FTP.
> However, we have noticed that when the upload is slow, the script may
> consider the file upload complete and move the file. We believe the
> problem to be related to file locking
>
> This is running on a Solaris box using standard Solaris FTP.
>
> We are currently testing a commercial FTP product as a potential solution
> to this. However, we would appreciate any suggestions if you have
> alternate solutions to propose.
>
> Thanks in advance.
>
> G. Vautour
> Unix Group Leader - Server Support Team
> Statistics Canada/Statistique Canada
In general, file locking in unix is advisory. It doesn't prevent
things form happening by force. You could write a script in expect that
would collect stuff via ftp and the script would not be confused by
slow uploads. Note that this implies that the scrpt "pulls" the
information. Otherwise, you need to make the process that gets
the data do something, like write to a pipe or send a signal
when the data is ready to be moved.
Speaking only for myself,
Joe Durusau
- Previous message: Gilles Vautour: "File Locking"
- In reply to: Gilles Vautour: "File Locking"
- Next in thread: Barry Margolin: "Re: File Locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|