[WestTLUG] writing to another machine's /dev/ttyS0... how?

john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org
Tue Sep 12 01:19:27 UTC 2006


One more idea. If you used the netcat (nc) method you need only open /dev/tcp/<hostname>/<port#> to read and write to the remote socket. 

Sent from my BlackBerry device on the Rogers Wireless Network  

-----Original Message-----
From: bob <ican at netrover.com>
Date: Mon, 11 Sep 2006 13:33:57 
To:tlug at ss.org, WestTLUG at yahoogroups.ca
Subject: [TLUG]: Re: [WestTLUG] writing to another machine's /dev/ttyS0... how?

What exactly are you trying to do?   Are you trying to exchange information 
between machines over a serial link?    Do you want to do this inside some 
custom scripting?    If so you can readily open up a serial port from inside 
a Tcl/Tk script and read and write much as you would to a file.

bob


On Monday 11 September 2006 09:19 am, William Park wrote:
> Is there an easy way to write to /dev/ttyS0 (dumb serial device)
> attached to another machine.  On that remote machine, I just do
>     cat ... > /dev/ttyS0
>
> But, how do I this from separate machine?  I guess, I can use 'inetd'
> method, but there has to be better way.
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists


More information about the Legacy mailing list