SyntaxFix
Write A Post
Hire A Developer
Questions
A minor modification like below worked for me when using it from within perl and system() call:
sftp {user}@{host} <<< $'put {local_file_path} {remote_file_path}'