terminal - 'tee'ing /dev/pty to stdio AND somewhere else (file/ or other device) -
thanks in advance either answering specific question or letting me know if there better way accomplish trying altogether.
i'll start out specific question:
i have serial program writing , reading /dev/ttyp0, , if run
cat -v /dev/ptyp0
i can see ascii characters program outputting runs. great, wanted.
but want display characters , tee device (a serial port - via usb serial adapter).
i thinking work run
cat -v /dev/ptyp0 | tee /dev/tty.usa19h62p1.1
but result of no output whatsoever - on screen nor device. thought maybe i'd try teeing off file make sure using tee correctly:
cat -v /dev/ptyp0 | tee file.txt
but still nothing @ all. empty file.txt, empty terminal on sreen. doing wrong? running osx 10.8.4 way.
now here's boarder picture of doing: have emulator program (basilisk ii) emulating macintosh machine running mac os 7.5.3. trying specialty program talk hardware device, old audio multi-effect unit, via rs-232. works, unreliably, , have feeling because of timing problems, i.e. older mac software has extremely low timeout length when pings device, , latency between program though emulator software, through usb-serial device, causes program time-out, either repeatedly, or low 10% of time, depending on variety of other factors. trying snoop on serial communication insight on communication between software , hardware unit, , using psuedoterminal send communication through , teeing off can view on screen seems logical. communication ascii characters, , have nice thick manual describing character sequences correspond commands, , units response should be.
is there better way go this?
Comments
Post a Comment