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

Is shell script a programming language?

1068


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

4182


Which is better perl or shell scripting?

1036


Why is used in shell scripting?

1046


What are the zombie processes?

1035


How do I run a shell script in powershell?

1176


Is shell scripting useful?

1099


What are the 3 standard streams in linux?

1202


What is echo $shell?

1129


determine the output of the following command: echo ${new:-variable}

1025


How to print pid of the current shell?

1039


how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com

2604


What does chmod do?

1295


How can I set the default rwx permission to all users on every file which is created in the current shell?

1469


What is c in shell script?

1116