10-20-2010
Unix Shell Script to prompt customer for name etc
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:
How do I create a shell script called 'custinfo' to prompt a customer to enter and display back the following: name, age, address, phone number, product, price range.
Thanks
2. Relevant commands, code, scripts, algorithms:
none
3. The attempts at a solution (include all code and scripts):
echo "Enter your name:> \c"
read name
echo "enter your age:> \c"
read age
echo "enter address:> \c"
read address
echo "enter phone number:> \c"
read phone number
echo
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
I explained to a moderator yesterday that I am teaching myself unix.
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to write a shell script which will change the current shell (say from csh to bsh) and my Prompt (say my name) as desired.pls help (1 Reply)
Discussion started by: SHYAM
1 Replies
2. UNIX for Dummies Questions & Answers
Like many UNIX users, there is a small team that is connected to UNIX (under the same UNIX user) via putty from a Windows PC.
Is there a way, once under UNIX, to know the address of the originating computer or anything that can differentiate initial users ? (7 Replies)
Discussion started by: popescu1954
7 Replies
3. AIX
Hi,
I want to set Unix prompt in C-Shell which required the break new line using alias.
Ex.
hostname : username :
%>
Now, it will be setup in .login file with alias
alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"'
I'm unable to parse echo command or break which I can get %>... (1 Reply)
Discussion started by: buzzusa
1 Replies
4. Shell Programming and Scripting
Hi,
I want to set Unix prompt in C-Shell which required the break new line using alias.
Ex.
hostname : username :
%>
Now, it will be setup in .login file with alias
alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"'
I'm unable to parse echo command or break which I can get %>... (3 Replies)
Discussion started by: buzzusa
3 Replies
5. Shell Programming and Scripting
How do I create a shell script called 'custinfo' to prompt a customer to enter and display back the following: name, age, address, phone number, product, price range.
Thanks (1 Reply)
Discussion started by: SQLScript
1 Replies
6. UNIX for Dummies Questions & Answers
reposting
How do I create a shell script called 'custinfo' to prompt a customer to enter and display back the following: name, age, address, phone number, product, price range.
Thanks (1 Reply)
Discussion started by: SQLScript
1 Replies
7. Shell Programming and Scripting
Hello,
I work on Windows and I use Putty to access a remote UNIX server.
I am trying to build a shell script that will have as main task to open the
Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
Discussion started by: rookie2785
14 Replies
8. Homework & Coursework Questions
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: I am trying to write a shell script that prompts the user for the password which is "lux" once the correct password... (4 Replies)
Discussion started by: Emin_Em
4 Replies
9. UNIX for Beginners Questions & Answers
Hey Guys and Gals, Im a complete Noob to Unix. But recently have started working on a unix system for my PET/CT scanner. My scanner comes with a MOD drive for backup. I would like to back up to USB (its alot cheaper). But the only way to do so is by manually enterin the unix commands. Id like to... (13 Replies)
Discussion started by: TorresGXL
13 Replies
LEARN ABOUT ULTRIX
lmfsetup
lmfsetup(8) System Manager's Manual lmfsetup(8)
Name
lmfsetup - License Management Facility PAK registration script
Syntax
/etc/lmfsetup [ template ]
Description
The script allows you to register data supplied by a Product Authorization Key (PAK). The script prompts you for the data associated with
each of the fields on a PAK. When all the data has been entered, the License Management Facility (LMF) ensures there are entries against
all the mandatory fields, and that the Checksum validates all the license data. If the data has been entered correctly, the PAK is regis-
tered in the License Database. If the data has been entered incorrectly, the appropriate error message is displayed and you are given the
opportunity to re-enter the data.
The template option allows you to register license data from templates in A template containing a partially complete PAK is created by some
products as part of their installation process. The script only prompts you for data on the fields that are empty in the template. If the
script cannot find the specified template in it searches the current directory.
The script is provided as an alternative to the command. This displays a template, which includes the fields on the PAK, and invokes an
editor so that you can add the license data to the appropriate field. The command also allows errors to be corrected without having to re-
enter all the data.
See Also
lmf(8)
Guide to Software Licensing
lmfsetup(8)