perl passwd 자동 입력
ITWeb/개발일반 2011. 9. 7. 14:16-
print "Enter Your Password: "; $oldpass =
; -
print "Enter Your New Password: "; $newpass =
; -
-
open (PASSWD, "| passwd --stdin");
-
print PASSWD "$oldpass";
-
print PASSWD "$newpass";
-
print PASSWD "$newpass";
-
close(PASSWD);