[BNM] Redirecting one Unix serial port to another?

Stephen Ticehurst sticehurst at jtsr.co.uk
Wed Apr 2 10:50:11 BST 2008


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/ 


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