[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script with passwd



On Mon, May 09, 2005 at 10:06:51AM -0400, Michael Marsh wrote:
> On 5/9/05, STEPHANE DURIEUX <durieux42@yahoo.fr> 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:
sven@marvin:/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 ]



Reply to: