Re: Reading data from a tty
- From: Bob_M <r.mariotti@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 20 Apr 2006 17:46:56 -0400
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 forI need to create a single file for each burst of data
each burst?
2) If the answer to #1 is a separate file for each burst, how do you knowThere is no EOF character. However, each burst will start with
you've reached the end of the "burst" of data? A special character or EOF
indicator or some amount of idle time?
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
.
- References:
- Reading data from a tty
- From: ERICM76903
- Re: Reading data from a tty
- From: laixsoft
- Re: Reading data from a tty
- From: ERICM76903
- Reading data from a tty
- Prev by Date: Re: shared libs not shared
- Next by Date: Re: Multiple processes; one file
- Previous by thread: Re: Reading data from a tty
- Next by thread: SCSI Reserve issue with HACMP 5.2 and new DS-8100
- Index(es):
Relevant Pages
|