Subject: Re: serial port <--> network <--> serial port
To: Herb Peyerl <hpeyerl@beer.org>
From: None <brook@biology.nmsu.edu>
List: netbsd-help
Date: 07/22/2005 11:01:04
Herb Peyerl writes:
 > Might it be easier if you tell people what each of the endpoints is?   
 > Two NetBSD boxes?  I think you could probably do this using something  
 > like netcat on both ends...

Sorry.  Yes, the ends are NetBSD boxes in this case.

With netcat I suppose I would do something like

     cat /dev/ttyXX | nc -l -p port
     nc hostname port | cat /dev/ttyXX

on the two different ends.  Is it really that simple?  Will this be a
two-way connection?

Then I would use stty to set the serial device characteristics?  Does
this need to be done after the pipes above or are settings with stty
persistent?

Thanks for the pointers.

Cheers,
Brook