[BNM] Redirecting one Unix serial port to another?

John Montgomery john at littlespikeyland.com
Wed Apr 2 11:05:46 BST 2008


Don't know about redirecting serial ports, but the unix command "tee"
can be used to redirect stdin to a file as well as passing it through
to stdout.  e.g.

 tail -f /dev/tty.my_bluetooth_serial_port | tee bt.txt

Would write everything into "bt.txt" as well as to the terminal.

On 02/04/2008, Stephen Ticehurst <sticehurst at jtsr.co.uk> wrote:
> just off the top of my head, can you redirect one to the other for example:
>
>  cat /dev/tty.my_bluetooth_serial_port > /dev/tty.my_USB_serial_port
>
>
>
>
>
>  * Tristan Roddis (tristan at roddis.org) wrote:
>  > Here's a question for the Unix gurus amongst you: how can I redirect all the input from one terminal to another one?
>  >
>  > I.e. I'd like to get anything that turned up on /dev/tty.my_bluetooth_serial_port redirected to /dev/tty.my_USB_serial_port
>  >
>  > For a bonus point, is there a way so that I could also see what is passing between them (e.g. on /dev/tty or by tail-ing a file) ?
>  >
>  > I'm on  a Mac, if that makes any difference (Darwin, bash, whatnot...)
>  >
>  > Thanks,
>  >
>  > -T.
>  >
>  > --
>  > tristan at roddis.org                              http://www.roddis.org
>  > _______________________________.oOo._________________________________
>  > "Welcome to the free world."                       http://www.fsf.org
>  > --
>  >
>  > BNM Subscribe/Unsubscribe:
>  > http://www.brightonnewmedia.org/options/bnmlist
>  >
>  > Archive Search - http://icanhaz.com/bnmarchive
>  >
>  > BNM powered by Wessex Networks:
>  > http://www.wessexnetworks.com
>
>
> --
>
>  Stephen Ticehurst
>  sticehurst at jtsr.co.uk   http://trabant.moleville.co.uk/
>                         http://books.moleville.co.uk/
>
> --
>
>  BNM Subscribe/Unsubscribe:
>  http://www.brightonnewmedia.org/options/bnmlist
>
>  Archive Search - http://icanhaz.com/bnmarchive
>
>  BNM powered by Wessex Networks:
>  http://www.wessexnetworks.com
>
>


-- 
http://psychicorigami.com/


More information about the BNMlist mailing list. Powered by Wessex Networks