On Tue, 2003-08-19 at 14:43, Scott Ragen wrote: > Hi All, > I would google search on this problem if I could, but I don't where I > would start... so any pointers, or the answer would be appreciated. > My problem is: > A client ftp's files to our customer for processing, the connection goes > as such: > ftp client----> win2k-->through samba to Linux (S:\) > (They use the win2k box so the End machine isn't exposed, I know > ridiculous using IIS as an ftp server...) > > What happens is they ftp directly to the processing directory so the > script is picking up semi completed files, and failing. > > My question: What happens if they create a batch file on to the win2k box > to move them from a temp directory to the processing directory? > Will it have the same effects as mv in Linux, or is this going to be > pointless? > > If this is fruitless, any suggestions on how this could be achieved?
For a command: man fuser For a process: I use a timer and check after 30 seconds, if the byte count is not increasing then the transfer is complete. A little risky. Process II: I use trigger files, the trigger file is a small file transmitted after the first one is complete. Strip the trigger extension to get the real filename and there is your data. Additional points for a CRC or a byte count in the trigger file. -- Thanks KenF OpenOffice.org developer -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug