【发布时间】:2014-03-08 20:05:40
【问题描述】:
我需要通过 ssh 将 shell 脚本中的文本“cat”到远程机器。 为了简单起见,这是必需的,所以我不需要保留额外的文件。
例如
#!/bin/sh
VAR="some"
VAR1="something"
cat << EOF
apple
green
tree
EOF ---> cat to file.txt on remote machine
do some command
do some command1
exit 0
【问题讨论】: