【问题标题】:escaping quotes in putty remote command在腻子远程命令中转义引号
【发布时间】:2014-07-20 17:37:30
【问题描述】:

我有一个不那么光荣的任务要解决,到目前为止还没有成功。

我想使用 putty 中的“远程命令:”字段执行远程脚本:script param1 'param 2 with spaces'

在 linux 上简单转义效果很好,即ssh user@remotehost script param1 \'param 2 with spaces\',但在 Windows 上不行。

请推荐。

【问题讨论】:

    标签: bash quotes putty double-quotes remotecommand


    【解决方案1】:

    刚刚找到了解决方案 - putty 为您完成了转义。

    本例中的解决方案是输入远程命令,就像:script param1 'param 2 with spaces'

    【讨论】:

      猜你喜欢
      • 2013-03-12
      • 1970-01-01
      • 2014-08-21
      • 2013-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多