If I try to lock a file while it is still being transferred, would that cause an error? If so, then I can I know the file is still being processed.
What do you think, please? Thanks, Ahmed Randal L. Schwartz wrote: >>>>>>"Ahmed" == Ahmed Moustafa Ibrahim Ahmed <[EMAIL PROTECTED]> writes: >>>>>> > > Ahmed> My script should be waiting for the incoming files and encrypts them as > Ahmed> soon as the transmission is completed. Using "lsof" makes a gap between > Ahmed> the arrival of the files and their encryption. > > Ahmed> Is there any other way to know that a file is being FTPed, specifically? > > The traditional safe way is to have the sender first upload the file > with a "temporary" extension or prefix, then do a remote-rename to a > final valid name when the upload is complete. If you can't control > the sender, then you are hosed. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]