The sftp script I've written will be executed by the application. It is a part of an automated task which runs daily to get the files from the remote server. So, the process of checking whether the file is present & if present, then getting it...should be automated.