When the user would run the above command, the form data provided will follow in the same window(same session):
ABCD TOOL
Logged User: abcd12 Current Directory: /dir1/dir2
Input1: ___________ Input2 : ________________
Input3: ___________
Confirm : Yes/No
Displaying the Header part is not a issue.
But I have no clue how to display the Input fields all at the same time and let the user enter the input one by one. Also he should be able to move from one field to other to modify it.
Till now I only used the <read> command.
I have already mentioned the problem with the <read> command.
Dear Experts
Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task??
Thanks for your help in... (6 Replies)
Hi Friends,
Can you please tell me how to create short form for directories?
like,
this is a directory: /usr/tmp/progs/scripts
when i give cd $short_name, it should take to the above path.
in which env setting do i have to set?
Thanks,
Rashmy. (8 Replies)
Hi, How to create array every time user input and store user input and display all array
print " Enter input "
my @input = split(' ', $input)
chmop($input = <STDIN>;
foreach ($input)
{
@array= @input;
}
print @array"\n"; (1 Reply)
I need some help to write a ksh script.
My code so far (pretty bad, sorry):
#! /bin/ksh
echo "Calculate average"
UserDecision=y
while test $UserDecision = y
do
echo "Enter a number: "
read Number1
echo "Enter a number: "
read Number2
echo "Do you want to enter another number?... (2 Replies)
Hi Dears,
I have one script to create new users with information in one plain text file. This script will read all lines in the file and create one users for one line.
Sample file:
#action;login,full name title,expire date,project
+;gmwen,Bruce Wen QA,04/01/2012,BT
+;xxdeng,Shown Deng... (4 Replies)
I want to create an array which can store the strings from the user input in shell script .
example :-
I want to store the 5 fruits name in a single array which the user provides . (1 Reply)
Hi I'd like to know in which direction I should go for this. Background: We have a Raspberry PI terminal which connects via XTerm to a telnet session. Openbox is the window manager(default). We have stripped down most of the unwanted apps that come with Rasparian except for browser which we... (2 Replies)
In the below bash a file is downloaded when the program is opened and then that file is searched based on user input and the result is written to a new file.
For example, the bash is opened and the download.txt is downloaded, the user then enters the id (NA04520). The id is used to search... (5 Replies)
I am trying to create a bash script that will create new function by using the user input. The below will create the necessary files in the correct format, however when it comes to the # create function I am at a loss.
If the name entered was NEWNAME and the genes were GENE1,GENE2 then two files... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT DEBIAN
lnewusers
lnewusers(8) System Manager's Manual lnewusers(8)NAME
lnewusers - Create new user accounts
SYNOPSIS
lnewusers [OPTION]...
DESCRIPTION
Creates new user accounts using data read from standard input.
The input data consits of lines, each line has 7 colon-separated fields:
User Name
Plaintext Password
User ID
lnewusers refuses to create users with user ID 0 (the root user ID).
Group If this field is a valid group ID, it is interpreted as a group ID, otherwise as a group name. If the field is empty, a group name
equal to user name is used.
If the specified group does not exist, it is automatically created. If the group is specified with a group ID, the created group
has group name equal to the user name.
GECOS The GECOS field is traditionally used to store user's real name and other information.
Home Directory
If this field is empty, a default specified by libuser configuration, or /home/username if libuser configuration does not specify a
default, is used.
Login Shell
If this field is empty, a default specified by libuser configuration is used.
Errors in user specifications are reported and processing continues on the next line.
OPTIONS -f, --file=file
Read account data from file instead of standard input.
-i, --interactive
Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration.
-M, --nocreatehome
Don't create home directories.
-n, --nocreatemail
Don't create mail spool files.
EXIT STATUS
The exit status is 0 on success, nonzero on fatal error. Errors in user specifications are not reflected in the exit status.
libuser Jan 12 2005 lnewusers(8)