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 can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?

1053


How do you create a shortcut in linux?

1117


Which scripting language is best for automation?

888


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2422


What happens when you type ls?

928


What is a shell script? Can you name some of its advantages?

970


How will you emulate wc –l using awk?

1463


Why is it called a shell?

878


What is shell application?

944


How would you compare the strings in a shell script?

929


What are the different variables present in linux shell?

1041


What language is used in terminal?

937


Explain about "s" permission bit in a file?

995


How do I set bash as default shell mac?

944


How to find duplicate record in file using shell script?

1320