Shell script to files from sftp
I need to download files from SFTP server to a local machine using a PowerShell script. The API/library that will be used for the download needs to be able to monitor results of the transfer, log the transfer, and also to archive/move the downloaded files. I need to transfer a txt file that is created on UNIX box to WINDOWS server using SFTP. Anyone post a program for that by using UNIX shell scripting. Create shell script to sftp files from unix to windows. I need to write a shell script that will be called by PHP program (exec function) to move all *.pdf files to a remote directory via SFTP. The target directory will be constant. The remote directory will also be constant. The files will only be of *.pdf format. The script must use SFTP, this is a .