Copy and append files to a remote machine: cat error

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 16:31:47

Your $PATH may be different when running through ssh.

Anyway, you can run which cat to find where cat is actually placed on the remote machine and hard code the path in the command invocation. For instance

ssh user@remoteserver "/sbin/cat >>remotefile" <localfile

(BTW, you don't really need the local cat).

Another option would be to use a SFTP client with support for appending.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!