Re: [SLUG] bash - moving up a notch

From: Mike Branda (mike@wackyworld.tv)
Date: Thu Oct 06 2005 - 12:55:23 EDT


On Wed, 2005-10-05 at 21:48 -0400, Kwan Lowe wrote:

snip

> >>Mike Branda wrote:
> >>
> >>>anybody know how to in essence "auto fill" a read in sh/bash??
> >>>
> > If the idea (auto filling the answers) is too clunky it's o.k. but I was
> > wondering if it's even possible.
>
> As Eben had mentioned, this sounds like something for 'expect'. You can
> use it to "listen" for a particular string and then send a response.

/snip

from man expect:

For example, here are some things Expect can do:

· Run fsck, and in response to its questions, answer "yes", "no" or
give control back to you, based on predetermined criteria.

Well you learn something new every day!!

Thanks guys.

Mike Branda Jr.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:58:03 EDT