【问题标题】:How to open a tmux session in a remote machine using SSHLibrary?如何使用 SSHLibrary 在远程机器中打开 tmux 会话?
【发布时间】:2022-01-16 21:24:22
【问题描述】:

无法使用机器人框架中的 SSHLibrary 在远程计算机中创建 tmux 会话。

代码尝试过 -

Execute Command   tmux new -s session01

输出-

   20211213 12:33:37.257 :  INFO : Executing command 'tmux new -s session01'.
   20211213 12:33:37.348 :  INFO : Command exited with return code 1.

【问题讨论】:

  • 您应该尝试使用--loglevel TRACE 运行测试以获得更好的错误。我认为有一个选项可以返回完整的错误,而不仅仅是错误代码。

标签: robotframework tmux robotframework-sshlibrary


【解决方案1】:

我能够通过以下方式执行 -

Execute Command   tmux new-session -d -s session_name 'Command To Execute'

【讨论】:

    猜你喜欢
    • 2012-01-21
    • 1970-01-01
    • 2023-04-10
    • 1970-01-01
    • 2020-07-05
    • 2021-08-02
    • 2020-07-10
    • 1970-01-01
    • 2013-11-03
    相关资源
    最近更新 更多