Knowing whether the file has completely SFTP ed

Hi..

Can Anyone out there help me? I need to write a script to convert a file in EDCIDC format to CSV
The files will be transfered through sftp to the box. Is there a way to check the file has finished being transfered or still transfering. so that my conversion task will be performed after the file has finished transfered to the box.Thanks in advance

Maybe use scp instead and check $?.
There is also a similar thread here, just some threads below in the list :wink:

Hi Zaxxon Thanks for the reply.

Could you please let me know what is SCP?
Also can any one please let me know how to do file checking with fuser to confirm the file is not being written to anymore by the inbound sftp process. When that is not in use then load everything up i.e my conversion process

fuser will most probably not help you to show if a file is still being written to. Maybe try lsof. scp is a tool that comes with the installation of ssh as does sftp. It simply means Secure Copy. Check man scp. It is easier and more comfortable to use than s(ftp).