depends on sftp client - most utilities operating in BATCH mode
disable INTERACTIVE messages that will have no use other than to clog up the
Smarten up your script to check return codes (errorlevels) to determine
success / failure
and branch accordingly.
IF you have an intelligent reason for trying to do this, you may wish to
redirecting output of stderr, or look at the source if you determine that
being used. You could, of course, always modify and recompile the source to
the behavior of the tool.
> Any help, please. I got to use sh output to capture from a sftp put
> command the following lines:
> sftp> put file1 100% 6846 105.1KB/s 00:00
> sftp> exit
> But when I use batch-mode transfer: