sesc360
sesc360

Reputation: 3255

interceptty error when executing

I want to listen to a certain device on my linux system. therefore I am using interceptty. When I call:

mv ttyO0 ttyO0-orig

and then

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

I get the error: Couldn't openpty: No such file or directry

What does this mean? The file ttyO0-orig is available. Or is the error somewhere else?

Upvotes: 0

Views: 407

Answers (1)

Thomas Dickey
Thomas Dickey

Reputation: 54524

Reading the manual page, it appears to be complaining about the front device, which does not exist (since you moved it):

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

Upvotes: 2

Related Questions