hi, i am trying to write a script to generate a big number of users in perl.. it is actually my second time writting perl .. i used to write shell scripts before. my little script seems not working because "useradd" isn't found by the compiler. if anyone may point out why it would be great. thanks.
#!/usr/bin/perl
$uName=$ARGV[0];
$uNumStart=$ARGV[1];
$uNumEnd=$ARGV[2];
for($i=$uNumStart; $i<=uNumEnd; $i++)
{
useradd "$uName.$i" -g 999;
}