Single Line sftp from Terminal

前端 未结 6 1457
渐次进展
渐次进展 2020-12-22 20:59

Several times throughout the day, I may be running a test where I need to look through a log file on a remote server. I\'ve gotten used to using my terminal to sftp

6条回答
  •  余生分开走
    2020-12-22 21:41

    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}'
    

提交回复
热议问题