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

Robert Brockway rbrockway-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org
Mon Sep 11 18:22:33 UTC 2006


On Mon, 11 Sep 2006, 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.

Ssh should work.  Something like:

echo "Bob is a cool guy" | ssh $REMOTEHOST "cat > /dev/ttyS0"

With the right use of ssh-agent or null passphrases the access can be 
transparent.

Rob

-- 
Robert Brockway B.Sc.        Phone:          +1-905-821-2327
Senior Technical Consultant  Urgent Support: +1-416-669-3073
OpenTrend Solutions Ltd      Email:          support-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org
                              Web:            www.opentrend.net
--
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