Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password script

Status
Not open for further replies.

jrradio

Technical User
May 16, 2002
1
0
0
US
I need to write a script to change the password without having to type the new password. I would like it to read the new one from a file.
 
I would recommend expect or the expect module for perl
for an interactive task like this.

Robert Robert G. Jordan
Unix Sys Admin
Sleepy Hollow, Illinois U.S.A.
sh.gif


FREE Unix Scripts
 
read <variable name> < <filename>
passwd <variable name>

can be easily made more functional with error traps etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top