[aklug] Re: Regarding terminal input

From: Michael Figley <michaelfigley@yahoo.com>
Date: Wed Mar 11 2009 - 14:36:37 AKDT

--- On Mon, 3/9/09, barsalou <barjunk@attglobal.net> wrote:

> From: barsalou <barjunk@attglobal.net>
> Subject: [aklug] Re: Regarding terminal input
> To: aklug@aklug.org
> Date: Monday, March 9, 2009, 6:07 PM
> Quoting Christopher Howard <choward@indicium.us>:
>
> > At work we were able to sucessfully open terminal
> communication with our
> > robot over bluetooth (serial emulation) and we use the
> screen command,
> > like so:
> >
> > =09screen /dev/devicenameblablabla
> >
> > What we were wondering was, is there are a way we
> could pipe in commands
> > from a file?
> >
> > I tried the obvious
> >
> > =09~/testfile | screen /dev/devicenameblablabla
> >
> > But just got an error message like
> >
> > =09Must be connected to a terminal.
> >
> > I can't just write directly to the device file
> (and I did try) because
> > (from what I understand) a terminal emulator is needed
> to control the
> > serial communication (baud rate and all that jazz).
> >
> > Is there a way I can do this with screen or another
> term emulator? I
> > really do live inside the shell, but I do very little
> shell scripting or
> > advanced command-line work.
> >
> One possible way is to use expect with telnet or ssh.
>
> Mike B.

I a previous life, we used a program called "expect"
to actually interact with/wrap terminal-type applications -
maybe even a nice GUI...

There may be better options available today - I got burned
out fast on it because of the tcl/tk language - ick!

mdf

      
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Mar 11 14:36:49 2009

This archive was generated by hypermail 2.1.8 : Wed Mar 11 2009 - 14:36:49 AKDT