Re: File Locking

From: Joe Durusau (joseph.a.durusau@lmco.com)
Date: 04/15/03

  • Next message: Barry Margolin: "Re: File Locking"
    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


  • Next message: Barry Margolin: "Re: File Locking"

    Relevant Pages

    • Re: File Locking
      ... Gilles Vautour wrote: ... > We have a situation where a script collects files uploaded via FTP. ... > consider the file upload complete and move the file. ...
      (comp.unix.solaris)
    • File Locking
      ... We have a situation where a script collects files uploaded via FTP. ... consider the file upload complete and move the file. ... We are currently testing a commercial FTP product as a potential solution ...
      (comp.unix.solaris)
    • File Locking
      ... We have a situation where a script collects files uploaded via FTP. ... consider the file upload complete and move the file. ... We are currently testing a commercial FTP product as a potential solution ...
      (comp.unix.misc)
    • Re: FTP delete problem
      ... the problem was a lock to a file that the ftp get worked, ... Bernard Cheah ha scritto: ... generate by schedule task. ... If i manually execute the script, the output wrote, but by schedule ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: FTP delete problem
      ... Yes, the script looking the previous day log file, but when it's still ... Bernard Cheah ha scritto: ... the problem was a lock to a file that the ftp get worked, ... generate by schedule task. ...
      (microsoft.public.inetserver.iis.ftp)