Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL
SHELL SCRIPT?

Answer Posted / dibala

#!/bin/ksh
set -x #on
#variable
i=1
while [ i let 10 ]
do
/usr/sbin/useradd user$i -d /home/user$i -s /bin/ksh -m
user$i
i=$(expr $i + 1)
done

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

4075


What does path stand for?

1069


Can you write a script to portray how set –x works?

1004


How to open a read-only file in the shell?

1129


What is shell scripting?

1062


What is echo $shell?

1098


how will you find the total disk space used by a specific user?

1051


How to get the last line from a file using just the terminal?

1232


What are the disadvantages of shell scripting?

1204


What is ms powershell?

1025


What are filters explain sort with all the options available?

1344


How to set an array in linux?

1235


What is difference between shell and bash scripting?

990


Is powershell a bash?

1082


How do I run a script on mac?

1106