Try this URL for an "expect" script that does some of what you want to do.
http://www.faqs.org/faqs/unix-faq/fa...section-9.html
You can write a simple perl script to read in usernames from a file, create the user accounts and then set the passwords by executing the expect script using the "system" perl statement.
Hope this helps.


Reply With Quote
Bookmarks