On 6/24/04, Mundell, R. (Ronald) <[EMAIL PROTECTED]> wrote:

Good Day All

 

I am trying to change a password in a Perl script. Does anyone know how to do this?

 

Eg.

 

passwd user1

Changing password for "user1"

user1's Old password:  123456

user1's New password: abcde123

Enter the new password again: abcde123



yes.
read about stdin and stdout. and quotemeta...I don't know why you would be automating this though...it's easier to just do:

system('passwd') == 0 || die "$!";


_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to