[aklug] Re: Regarding terminal input

From: barsalou <barjunk@attglobal.net>
Date: Mon Mar 09 2009 - 18:07:13 AKDT

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.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Mon Mar 9 18:07:25 2009

This archive was generated by hypermail 2.1.8 : Mon Mar 09 2009 - 18:07:25 AKDT