I'm running a simple script that uses 'synchronize local' to synchronize a local directory from a remote directory.
The script looks like this:
option batch abort
option confirm off
open sftp://<site> -hostkey="<hostkey>"
option transfer binary
When the script hits the 'synchronize local' line it spits out a line to the console for each existing file in the pair.
These are of the form:
Local 'D:\<directory>\<sub-directory>\<file_name>' <= Remote '/<directory>/<sub-directory>/<file_name>'
As their are many, many small files (>100k [!-don't ask]) in the remote directory it takes quite a while (hours?) to get to synchronizing any new files.
Is there a switch or parameter that will suppress or skip this console output?
On further investigation, I have a similar script that lists only the (new) files being synchronized, not ALL the files and directories.
It appears that something in the session setup affects the console output when the session is invoked in a script - am I correct?