更新时间:2023-12-04 19:48:52
也许你***还是运行 SSH用户@主机命令;另一个;更多的
或者如果你真的要使用一个明确的 SH
,像 SSH用户@主机SH -c'命令;另外,更多的
。这也应该拯救你把剧本中的临时文件。
Perhaps you are better off running ssh user@host 'command; another; more'
or if you really have to use an explicit sh
, something like ssh user@host "sh -c 'command; another; more'"
. That should also save you from putting the script in a temporary file.