HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL
SHELL SCRIPT?
Answer Posted / nimal
#!/bin/sh
for i in {1..10)
do
echo "creating user"$i;
useradd user$i;
done
to list the created users.
cat /etc/passwd
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }
What is sudo command?
What is mac default shell?
How will you print the login names of all users on a system?
Is shell scripting a programming language?
How to check if a directory exists?
What is the difference between break and continue commands?
Is shell scripting useful?
wats the deinitions for shell utility and filter?
How do I set bash as default shell mac?
What is the command to find out today's date?
How do I stop script errors?
How to redirect both standard output and standard error to the same location?
What are the advantages of shell scripting?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?