Re: Reading data from a tty



On 20 Apr 2006 05:43:13 -0700, "ERICM76903" <ericm76903@xxxxxxxxx>
wrote:

<From Paul Laymon>
This can be trivial or it can be complicated. There are two things:

1) Do you want to append each burst to a single file or have one file for
each burst?
I need to create a single file for each burst of data

2) If the answer to #1 is a separate file for each burst, how do you know
you've reached the end of the "burst" of data? A special character or EOF
indicator or some amount of idle time?
There is no EOF character. However, each burst will start with
ASCII character seq(2).
Thus. When the program sees seq(2), then it will know that a new
file needs to be created containing the data that comes in next, until
another seq(2) character is received.

Paul, I will check out the C code link that you posted.

Also, Bob, can "netty" be configured to run in the manner described
above?

I have been lucky enough to get another day to get this one done, but I
am getting close to a deadline.

Gee, I guess I should have not sleep thru some of those classes in
college. :)

Thanks, Eric

Eric;

Paul Laymon of LAIXSoft is "the man" for you. He's the author of
"netty" and other very useful utilities for AIX. Last I used netty we
needed some "custom" feature and he was willing to implement those
features quickly and reasonably to our satisfaction. Perhaps what you
may be able to do is use netty as in interface between the various tty
port(s) and your program (written in whatever) and you can handle the
file creation closing re-opening, etc yourself based on data parsing.

Don't give up as this can be quite simple.

Good luck,

Bob
.



Relevant Pages

  • Re: Layering: For a moment, she stood in silence
    ... for a moment, then burst out laughing. ... For any character, bits of behavior like a nervous tic can help fill ... the actual passage of time. ...
    (rec.arts.sf.composition)
  • Re: Reading data from a tty
    ... <From Paul Laymon> ... I need to create a single file for each burst of data ... A special character or EOF ...
    (comp.unix.aix)