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!

Supress password prompt

Status
Not open for further replies.

smitakale

Programmer
Jun 17, 2002
6
0
0
IN
Hi,

I am writing shell script for creating AIX users. The script takes 'number of users to be added' as the argument and generates the users using 'mkuser' command. But the users are disabled till their password is not set using 'pwdadm' command. The 'pwdadm' command prompts for new password for each user. I want to suppress the prompt and make it take input from another file (or variable) in the shell script. I tried using redirect, but its not working. Please help.

Thanks in advance,
Smita.
 
Do you have expect? Expect would handle what you are trying to do... perfectly. Regards,
Chuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top