Re: script with passwd

2005-05-09 Thread Sven Hoexter
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 t

Re: script with passwd

2005-05-09 Thread Michael Marsh
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". -- Michael A. Marsh http:

script with passwd

2005-05-09 Thread STEPHANE DURIEUX
Hello a newbie question : even if it is not secure I would like to know how to write a script with the passwd command without having to enter the passwd. 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