On Sat, Apr 30, 2011 at 17:22, dolphin <yc282...@yahoo.com.sg> wrote:
> Hi, > > To reset password in unix, the system will prompt 2 times for entering > the new password. The first time is to enter the new password and the > second time is to confirm the new password of the account. It is > tedious to perform this when there is a huge volume (>100) of user > accounts. Is it possible to write a perl script that read from a file > that contain the password of the user and automate this? > > Any pointer is very much appreciated. Thanks in advance. > > You will need the Expect module from CPAN. Ken Wolcott