View previous topic :: View next topic |
Author |
Message |
lea0014 n00b
Joined: 09 Mar 2010 Posts: 24
|
Posted: Sun Jul 28, 2013 8:16 pm Post subject: How do i catch tty's output from X? |
|
|
Hi there, i'm writing some scripts and what i need is watch at realtime what is happening on tty1 from a terminal emulator or something like that. I just google it a lot, and it looks like there is no many ways to do it. I think that screen is not an option for me. So, is there any other option? |
|
Back to top |
|
|
vaxbrat l33t
Joined: 05 Oct 2005 Posts: 731 Location: DC Burbs
|
Posted: Sun Jul 28, 2013 9:58 pm Post subject: look at expect |
|
|
There's a tcl package dev-tcltk/expect which can be used to handle serial or usb i/o interactions. Python has a pure python version of that lying around somewhere. I think there's one in the java framework somewhere too.
If you are doing any PyQt in your scripting, I wrote a generic logging class and ui file for use with interacting with a spawned QProcess, but I have never released it to the world. It's event driven and does a callback when input becomes available from the child. |
|
Back to top |
|
|
|