[olug] password change one liner shell script

Vincent vincentr at cox.net
Mon Sep 8 04:30:16 UTC 2003


Try autoexpect.

----- Original Message ----- 
From: "Derek & Lisa" <lug at robotz.com>
To: <olug at olug.org>
Sent: Friday, September 05, 2003 11:40 AM
Subject: [olug] password change one liner shell script


> I want to set a user password all in one line, not by interactive prompt. 
> (bash shell script)
> 
> passwd username | sleep 1s && echo $passwordvariable |  echo $passwordvariable
> 
> Something like that, but that actually works and enters the password twice.
> 
> any ideas?
> 
> ty
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug


More information about the OLUG mailing list