Sponsored Content
Full Discussion: Checking arguments
Top Forums Shell Programming and Scripting Checking arguments Post 302507074 by kristinu on Tuesday 22nd of March 2011 05:01:23 PM
Old 03-22-2011
What you mean? Suppose a user tries an option that does not exist.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[: too many arguments

hi I am getting too many arguments error for the below line if ; then Thx in advance (1 Reply)
Discussion started by: vls1210
1 Replies

2. Shell Programming and Scripting

Too many arguments

echo "the number from 1 to 10:" i=1 while do echo $i i=`expr $i+1' done above is the program i written in Linux O.S using vi editor but i am getting the error that while: line 3: i am not understanding that why i am getting this error. can any body please help me regarding this... (3 Replies)
Discussion started by: bsatishbabu
3 Replies

3. Homework & Coursework Questions

checking for number of arguments.

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Your script must check for the correct number of arguments (one argument). If somebody tries to invoke the... (1 Reply)
Discussion started by: brooksie91
1 Replies

4. Shell Programming and Scripting

grep with two arguments to arguments to surch for

Hello, is it possible to give grep two documents to surche for? like grep "test" /home/one.txt AND /home/two.txt ? thanks (1 Reply)
Discussion started by: Cybertron
1 Replies

5. UNIX for Dummies Questions & Answers

How to take arguments?

Hey everybody. How do you write a program that will produce output based on its arguments? For example, how would you write one that will add 1 to an integer argument so it would look like this: $add 1 78 79 $ I only know how to write programs to take user input with the read function,... (2 Replies)
Discussion started by: unclepickle1
2 Replies

6. SCO

Stop boot system at "Checking protected password and checking subsystem databases"

Hi, (i'm sorry for my english) I'm a problem on boot sco unix 5.0.5 open server. this stop at "Checking protected password and checking subsystem databases" (See this image ) I'm try this: 1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094 2) SCO: SCO Unix - Server hangs... (9 Replies)
Discussion started by: buji
9 Replies

7. Programming

Checking which arguments are supplied

I have written this C++ program and I am using getopt_long and (0 Replies)
Discussion started by: kristinu
0 Replies

8. Programming

Checking which arguments are supplied

I have written this C++ program and I am using getopt_long (2 Replies)
Discussion started by: kristinu
2 Replies

9. Programming

Checking which arguments are supplied

I have written this C++ program and I am using getopt_long and want to chech when the user supplies the arguments so that I can put a default or otherwise. Currently I am using hasargv or Pc.get_string("key",s), Pc.get_real("key",s), etc to detect whether the user supplied a value. For... (3 Replies)
Discussion started by: kristinu
3 Replies

10. Shell Programming and Scripting

Too many arguments

because it gives me this error if? while read linea do #echo "Archivos Entrada: $linea" largo=`awk '{print length($linea)}'` echo "largo : $largo " if ; then #Here's the problem, I take this line and it works echo "a es igual a 1" fi... (3 Replies)
Discussion started by: tricampeon81
3 Replies
luseradd(8)						      System Manager's Manual						       luseradd(8)

NAME
luseradd - Add an user SYNOPSIS
luseradd [OPTION]... user DESCRIPTION
Adds an user with name user. OPTIONS
-c, --gecos=gecos Set the GECOS field to gecos. The GECOS field is traditionally used to store user's real name and other information. -d, --directory=directory Set user's home directory to directory. If this option is not present, a default specified by libuser configuration is used. -g, --gid=group Set user's primary group to group. group can either be a group ID of an existing group, or a group name; if group is a group name and the group does not exist, it is created. If the --gid option is not specified, the default group name is user. -i, --interactive Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration. -k, --skeleton=directory Populate the newly created user's home directory with a copy of directory. If this option is not present, a default directory spec- ified by libuser configuration, or /etc/skel if libuser configuration does not specify a default, is used. -M, --nocreatehome Don't create a home directory and a mail spool for the newly created user. -n, --nocreategroup If a group is not specified using -g, use group name "users" instead of user. Note that despite the name of the option, the group will still be created if it does not exist. -P, --plainpassword=password Set user's password to password. Note that the password can be viewed while running luseradd using tools such as ps(1). -p, --password=encrypted Set user's password to the password represented by the hash encrypted. Note that the hash can be viewed while running luseradd using tools such as ps(1). -r, --reserved The user is a system user. Users that are not marked as system user usually have automatically selected user IDs above a certain value (500 by default). This information is also passed to the libuser backends. This option implies the -M option. -s, --shell=shell Set user's login shell to shell. If this option is not present, a default specified by libuser configuration is used. -u, --uid=uid Use user ID uid for the newly created user. An user ID is selected automatically if this option is not present. EXIT STATUS
The exit status is 0 on success, nonzero on error. libuser Jan 12 2005 luseradd(8)
All times are GMT -4. The time now is 12:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy