[PLUG] minicom scripting?
Bill Barry
barryb at proaxis.com
Wed Dec 10 22:13:01 UTC 2003
On Wed, Dec 10, 2003 at 09:38:36PM -0800, Russell Senior wrote:
>
> A neighbor asked me to help him push a text file from Linux over a
> serial port to a 3D milling machine. First I try to sell him on using
> the print spooler (which I think would be kind of cool). No dice,
> besides he's still using sneaker net. So I fire up minicom, set the
> comm parameters and save it to a special configuration. He just wants
> to send a file as ASCII, so in conventional-interface minicom there is
> a lot clicky-click to get to the right spot to enter the filename.
> I'd like to script that for him. I noticed that minicom has some
> scripting capability, but it wasn't documented in the man page. Does
> anyone know how to script sending a file in minicom, or a more direct
> way to stuff a file out the serial port (at 2400 baud 7E1)?
>
How about
cat foo > /dev/ttyS0
Bill Barry
More information about the PLUG
mailing list