On Mon, May 09, 2005 at 10:06:51AM -0400, Michael Marsh wrote:
> On 5/9/05, STEPHANE DURIEUX <[EMAIL PROTECTED]> wrote:
> > more generally, how to answer question to a script
> > with always the same  response
> > I ve tried
> > echo passord |passwd user
> > but the passwd need to be put  several times (two
> > exactly).
> 
> Take a look at "expect".

With a focus on this part:
[EMAIL PROTECTED]:/usr/share/doc/expect/examples$ dpkg -S autopasswd
expect: /usr/share/doc/expect/examples/autopasswd

HTH
Sven
-- 
Das Fernsehen ist die größte kulturelle Katastrophe, die die Erde in der Zeit,
an die wir uns erinnern können, erlebt hat.
        [ Joseph Weizenbaum ]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to