且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过 ssh 运行 Bash 脚本

更新时间:2023-02-07 12:22:37

本地主机上的 shell 正在对 $NOW 和 $BACKUP 进行变量替换,因为EOI"没有被转义.替换

The shell on the local host is doing variable substitution on $NOW and $BACKUP because the "EOI" isn't escaped. Replace

 ssh tunneluser@111.222.333.444 <<EOI

 ssh tunneluser@111.222.333.444 <<EOI