[Xastir] small docs bug?

Curt, WE7U archer at eskimo.com
Tue Nov 16 14:45:14 EST 2004


On Sat, 13 Nov 2004, Daniel H. Brown wrote:

>   I think I found a bug in the FAQ:
>
> ------------------------------------------
>
>   $ diff -u FAQ~ FAQ
>   --- FAQ~        2004-10-04 16:20:07.000000000 -0400
>   +++ FAQ 2004-11-13 00:16:41.595128640 -0500
>   @@ -700,7 +700,7 @@
>         it.  It redirects tcpip data seamlessly under Linux.  Try
>         something like this:
>
>   -        cat /dev/ttyS0 > nc -p 3000
>   +        cat /dev/ttyS0 | nc -p 3000
>
>         If you want to put your GPS on a remote serial port, use the
>         gpsd daemon to do it.
>   @@ -752,4 +752,3 @@
>
>
>     Copyright (C) 2000-2004 The Xastir Group
>   -
>
> ------------------------------------------
>
>
> In common unix shells, "cat whatever > file " will create a file with the
> output of the cat command and "cat whatever | command" takes the output of
> the cat and "pipes" it to the stdin (standard input) of the second command.

Anyone have a yea/nay on the above?  I'll change the docs if someone
can verify the command.  I get an error if I try the command with
the redirect, but substitute "netcat" for "nc" (what it's called on
my Linux box):

    cat /dev/ttyS0 > netcat -p 3000

Using the pipe symbol I get "no destination":

    cat /dev/ttyS0 | netcat -p 3000

With either of these I get "no port[s] to connect to":

    cat /dev/ttyS0 | netcat localhost -p 3000
    cat /dev/ttyS0 | netcat -p 3000 localhost

Ah, this one appears to be working:

    cat /dev/ttyS0 | netcat -l -p 3000 localhost

Which tells it to create a listening socket.  I can then telnet to
port 3000 and I get a connect.  I have no idea whether it is talking
to the serial port though.

--
Curt, WE7U			         http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list