You can also use perl

open(H_COM, "</dev/ttyS0");
open(H_OUT, "somewhere out");
while (<H_COM>)
{
  print H_OUT;
}


----- Original Message -----
From: "Cameron Simpson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 21:06
Subject: Re: Capturing Data from Com Port


> On 20:23 25 Feb 2003, Al Sparks <[EMAIL PROTECTED]> wrote:
> | What programs are out there which will capture data from a PC's com
> | port, and allow me to redirect it to somewhere else?
>
> "cat" ?
>
> cat /dev/ttyS0 >>logfile
>
> Other less trivial examples no doubt abound.
> --
> Cameron Simpson, DoD#743        [EMAIL PROTECTED]
http://www.zip.com.au/~cs/
>
> Isaac Asimov once remarked that friends had chided him for not patenting
the
> electronic pocket calculator, since he wrote of similar devices back in
the
> 1940's.  His reply, "Have you ever noticed I only described what it looked
> like on the *outside*?" - [EMAIL PROTECTED]
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to