Rick Romero wrote: > IMHO, manually inserting records into MySQL is a bit of a kludge. It > would probably be better to create a flat file of users / passwords, > and let perl loop through that and pass the data to vadduser.
Ok Rick, let me get this straight -- you think doing a single insert into the MySQL database to add a user (which makes the user active *NOW*) is a kluge, but writing the info out to a flat file and periodically have a perl program loop through it and call vadduser isn't? Personally, I think it's the other way around. Inserting them into the MySQL database directly is clean and elegant, and activates the user immedetily. Your flat file and perl method is at *best* run every minute (the min. interval of cron), possibly longer. You have to worry about file locking (don't want to copy the file out from under a current processes that's writting to it), and you've got a plain text file sitting around with passwords in them. I really think you got it backwards :) > Rick Dave
