William M West wrote:
>
> definitions:: 'cuecat' is a barcode reader
> 'expect' is a scripting language that lets you
> automate
>   actions with interactive programs such as
> 'ftp'
>   or 'telnet'.
>
> what i am trying to do::
>
> 1 translate cuecat data(done via larry wall's perl script- don't
>   have URL).
> 2 write data to an interactive program.
>
>
> this last is giving me fits.  possible ways::
>
> write data to file.  slurp up file with an expect script.  this
> script needs to be constantly running- logging in to the
> system i use is a pain otherwise.  i do not yet know how
> to slurp the data with expect.
>
> pipe or write data to said expect script directly from the perl
> script instead of writing the data first to a file.  i do not know
> how to do that kind of inter-process communication.
>
> use the (an?) expect module for perl- i know of one,
> but the syntax looks darn right scary to me and i already
> have a sense of expect- so i'd rather not learn the perl
> version :P.  However, learning the perl version removes
> the need for inter-process communications.  as long as i can
> preprocess the keyboard (or cuecat) input, then send it to the
> interactive program (telnet session) i should be fine.
>
>
> the questions are::
>
>
> 1) has anyone had experience with this kind of project?
> 2) which of the above would be the most likely path for
> me to follow?
> 3)    any alternate methods?

Is there any separate reason to use 'expect' Perl will happily
talk telnet and ftp on its own.

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to