[lug] Easy one for the ones who know ;)
Hector M Banda
hector at need-info.com
Tue Jun 13 15:26:18 MDT 2000
Hi Ralf,
The data is just plain text. This data is going to be coming from a PHONE
switch but it needs to be up all the time (preferably).
Thanks,
On Tue, 13 Jun 2000, you wrote:
> On Tue, Jun 13, 2000 at 02:10:01PM -0700, Hector M Banda wrote:
> >
> > HI all,
> > How can I make LINUX to listen to a particular tty ( com1 or port 2 )
> > and create a file out of the input info?
>
> 'cat /dev/ttyS0 > data.file '
>
> > What I want to do is capture the information to a file coming from the line
> > and then import the information to database to be processed.
>
> Of course this really depends on the kind of data
> you expect to come in and the protocol used on the
> line. Isthere a terminal attached to the port or
> just some dumb device (like a termometer etc.).
> I usually write little wrappers in perl or C
> to read the data and maybe reopen the file in
> case youget an EOF.
>
> Ralf
>
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
--
===========================================
Hector M Banda
Senior Computer Programmer
Information Systems Department
Imperial Valley College
Imperial Ca, 92251
Phone: 760.355.6105
Fax : 425.790.6379
============================================
More information about the LUG
mailing list