Need a script to fetch file from shared folder to unix box

Hi All,

We have a requirement of pulling a file from shared folder to our unix box(Our application Servers). The Shared Folder and the servers are in teh same domain for eg UK domain

For this purpose I got information like if in both source and destination ftp is enabled we can fetch the file directly from source to destination.

But in the shared folder that is created in some File server FTP can't be enabled for security purpose.

Our Application Servers are sftp enabled.

So we have manually placed psftp software in the shared folder.

When we use this software i giev a command
open Servername
IT will ask for username and password to enter into the application server
i give that then its connected to our server. I can view the files located in our Server in a remote way
We need your help in automating in connecting to our servers using this Software without asking password and also to push the file from the shared folder to unix box automatically.

Thanks in advance.:b:

Hope this is Brainstorming

Regards,
Dhivya

Have you checked whether "sftp" is available on server?

something like

$ which sftp
/usr/bin/sftp
$

hi,

Yes in my server sftp is enabled