01-31-2014
So, based on $choice1, it seems that you want to set $opt1 and $opt2. Is that correct?
Such that,
user types in a 1
1 is stored to $choice1
therefore, programming to store "app1" to opt1 and "TEA1" to opt2
(and similar for the other three possibilities)
do some UNSPECIFIED file changes
then execute a command /usr/local/... $opt1 $opt2
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device?
thanks (7 Replies)
Discussion started by: dianayun
7 Replies
2. Solaris
When I want to use the editor ,whether vi or textedit,it prompts for entering a key. How can I disable this function?many thanks for offering solutions! (1 Reply)
Discussion started by: smartboy1461
1 Replies
3. Solaris
I only able to lock user ID with passwd -l username
It seems there is no option for me to unlock ID in solaris?
Is there any command as below?
passwd -u username
Appreciate someome can share with me the way to do it. (1 Reply)
Discussion started by: dwarf007
1 Replies
4. HP-UX
Hi,
not able to unlock user eventhough executed /usr/lbin/modprpw -k username
Thanks in advance (2 Replies)
Discussion started by: bpsunadm
2 Replies
5. AIX
When I do HMC upgrade, I download HMC code from IBM web site and burn it to a DVD disk, when I get the first DVD out of HMC's dvd rom and input the second DVD, it shows error:
The requested device is already locked by the process: Install Corrective Service.
Would you like to try to request a... (2 Replies)
Discussion started by: rainbow_bean
2 Replies
6. Red Hat
Hello all,
If anyone has time, I have a few questions:
How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too.
1. How to lock the account after a few (like 3) invalid password attempts?
2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies
7. UNIX for Advanced & Expert Users
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies
8. Shell Programming and Scripting
I'm running cygwin bash on Windows 8.1. I would like to to write a OS neutral bash script that uses the commands like lock, block and unlock.
Do I need to write lock, block and unlock myself in C++?
I'm hoping someone has already written them.
My bash script would look something like this:... (2 Replies)
Discussion started by: siegfried
2 Replies
9. Solaris
Hello,
It is to my understanding that when configuring the Solaris operating system to meet compliance standards, you must configure the "LOCK_AFTER_RETRIES" value in the "/etc/security/policy.conf" file to "YES", and then configure the "RETRIES" parameter in the "/etc/default/login" file to the... (4 Replies)
Discussion started by: TrustSovietBear
4 Replies
10. UNIX for Beginners Questions & Answers
I use Debian default encryption disk encryption. Only /boot it's not encrypted. When I boot I need to type my password, and then I will be logged in. But now I can't login. It always says that I typed the wrong password, but I typed the correct password.
I tried to boot in live-CD and try unlock... (3 Replies)
Discussion started by: zognadal
3 Replies
LEARN ABOUT DEBIAN
amc-imprime
AMC-IMPRIME(1) Auto Multiple Choice AMC-IMPRIME(1)
NAME
AMC-imprime - prints AMC multiple choice answer sheets to be distributed to the students
SYNOPSIS
auto-multiple-choice imprime --sujet subject.pdf --fich-nums numbers-file.txt --data data-dir --methode method
[where-to-print-arguments...]
DESCRIPTION
The AMC-imprime.pl command prints selected copies from a AMC multiple choice answer sheet.
What to print
The following arguments describe what to print:
--sujet subject.pdf
sets the subject file (prepared by AMC-prepare(1)).
--fich-nums numbers-file.txt
gives a file where the numbers of the copies to be printed are written (one number per line). If this argument is not given, all the
copies will be printed.
--data data-dir
gives the directory where data files are (see for example AMC-meptex(1)). The layout database in the data directory is used to know at
which page of the subject file each copy begins and ends.
Where to print
Several printing methods are currently defined:
o with "--methode CUPS", AMC-imprime.pl prints to a CUPS printer. One print job is sent for each copy, allowing for exemple to use
stapling. Use the following options with this method:
--imprimante printer
sets the CUPS printer name to print to.
--options cups-options
gives CUPS options, in the opt1=value1,opt2=value2,... format.
o with "--methode file", AMC-imprime.pl outputs the answer sheets to files (one for each copy).
--output filename
sets the filename for outputs. The '%e' sequence will be replaced by a 4-digits copy number. If filename does not contain '%e', the
string '-%e.pdf' will be added at its end.
o with "--methode command", AMC-imprime.pl will use a provided command for each copy.
--print-command command
gives the command to be used for printing. The command string will be split at each space character (even when using quotes...).
The sequence '%f' will be replaced by a PDF filename (containing the copy to print), and '%e' will be replaced by the copy number.
AUTHORS
Alexis Bienvenue <paamc@passoire.fr>
Main author
Jean Berard
Translation from French
Georges Khaznadar
Translation from French
COPYRIGHT
Copyright (C) 2008-2012 Alexis Bienvenue
This document can be used according to the terms of the GNU General Public License, version 2 or later.
Auto Multiple Choice 1.1.1 06/19/2012 AMC-IMPRIME(1)