scripts

how do I write a script to add 500 users

What scripting language are you experienced in writing? KSH, SH, PERL, PHP?

FLXS,

I deleted your duplicate threads. Please read the rules, search the forums with keywords and don't start multiple thread for the same topic.

Neo

I remember writing a script like this as part of a semester project, as part of a larger script.

One way would be to read the fields into an array and then call them while exe the useradd binary in UNIX.

Another way would be to read in one line at a time from a text file and awk out each field into variables $1-$5 and then use the useradd command.

It all depends on what you are comfortable with.

Please post your effort and we may be able to help you solve it.

Here is a perl solution.

:cool: