【问题标题】:interceptty error when executing执行时出现拦截错误
【发布时间】:2015-05-09 23:31:56
【问题描述】:

我想在我的 linux 系统上收听某个设备。因此我正在使用拦截。当我打电话时:

mv ttyO0 ttyO0-orig

然后

./interceptty -o ttyO0.out /dev/ttyO0-orig /dev/ttyO0 &

我收到错误:Couldn't openpty: No such file or directry

这是什么意思?文件 ttyO0-orig 可用。还是其他地方出错了?

【问题讨论】:

    标签: linux unix tty


    【解决方案1】:

    阅读manual page,它似乎在抱怨前端设备,它不存在(因为你移动了它):

    Usage: ./interceptty [-V] [-qvl] [-s back-set] [-o output-file] 
                      [-p pty-dev] [-t tty-dev] 
                      [-m [pty-owner,[pty-group,]]pty-mode]
                      [-u uid] [-g gid] [-/ chroot-dir]
                      back-device front-device
    

    【讨论】:

    • 但是它不应该被移动,因为这个前端设备正在被拦截模拟吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-03
    • 1970-01-01
    • 2020-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-29
    相关资源
    最近更新 更多