【问题标题】:Sending Commands to Konsole Terminal向 Konsole 终端发送命令
【发布时间】:2010-12-27 23:54:30
【问题描述】:

我喜欢在 RedHat 5 中启动 Konsole 时能够发送命令。例如。

$ konsole -e "sleep 30"

正在发生的事情是“sleep 30”正在成为标题,我收到一个错误提示

Konsole is unable to open a PTY (pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices."

我该怎么做?

【问题讨论】:

    标签: konsole


    【解决方案1】:

    省略引号。假设 Konsole 的 -e 选项与 xterm 和其他选项一样工作,-e 之后的第一个参数是要执行的命令名称,而其余参数则传递给命令。所以你试图运行一个名为 sleep 30 而不是 sleep 的程序。

    如果这是问题所在,错误消息看起来值得报告错误。应该是抱怨执行命令失败。

    【讨论】:

    • 太棒了。我没有想到要省略引号。
    猜你喜欢
    • 2021-09-22
    • 1970-01-01
    • 1970-01-01
    • 2017-06-17
    • 1970-01-01
    • 2016-06-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多