10-02-2012
Will it be just integers? What be the range? Does it need to be comma separated?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a shell script to build components of a product. The follow snippet will explain what I am doing.
# !/bin/sh
for choice in "$@" ;
do
case $choice in
"o") echo "Calling $choice" ; o ;;
"i") echo... (8 Replies)
Discussion started by: vino
8 Replies
2. UNIX for Dummies Questions & Answers
am a windows Prof .... i deside to go with the UNIX .... but how can i start ......plz help me ........ (1 Reply)
Discussion started by: ekarak
1 Replies
3. Shell Programming and Scripting
I have input file with below content:
Person:
Name: Firstname1 lastname1
Address: 111, Straat
City : Hilversum
Person:
Name : Fistname2 lastname2
Address: 222, street
Cit: Bussum
Person:
Name : Firstname2 lastname3
Address: 333, station straat
City: Amsterdam
I need... (6 Replies)
Discussion started by: McLan
6 Replies
4. Shell Programming and Scripting
Hi,
1_strings file contains
$ cat 1_strings
/home/$USER/Src
/home/Valid
/home/Review$ cat myxml
<projected value="some string" path="/home/$USER/Src">
<input 1/>
<estimate value/>
<somestring/>
</projected>
<few more lines >
<projected value="some string" path="/home/$USER/check">... (4 Replies)
Discussion started by: greet_sed
4 Replies
5. Shell Programming and Scripting
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
Discussion started by: i.srini89
1 Replies
6. UNIX for Dummies Questions & Answers
I have code that accepts input from a user, and when the user hits enter it is supposed to delete that whole line from the file.
echo "Which record? "
read record
sed '/$record/d' file
However, it does not delete it. Any help? (1 Reply)
Discussion started by: itech4814
1 Replies
7. Shell Programming and Scripting
i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled.
#!/bin/sh
echo " Enter your choice to continue y/Y OR n/N to quit "
read A
if
then
echo " user requested to continue "
##some commands... (7 Replies)
Discussion started by: only4satish
7 Replies
8. Homework & Coursework Questions
Good Evening. I'm new to C. Can you please help me.
I'm creating an error checking function, user will input a string, this will check if the input is all alphabet or all letters only. If there is a digit or other special char, it will print Error then ask input from user again.
Here's my... (1 Reply)
Discussion started by: eracav
1 Replies
9. Shell Programming and Scripting
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
10. Shell Programming and Scripting
i am having file like this
#!/bin/bash
read -p 'Username: ' uservar
match='<color="red" />'
text='this is only a test
so please be patient
<color="red" />'
echo "$text" | sed "s/$match/&$uservar\g"
so desireble output what i want is if user type MARIA
this is only a test
so please... (13 Replies)
Discussion started by: tomislav91
13 Replies
LEARN ABOUT DEBIAN
lircmd
LIRCMD(8) System Administration Utilities LIRCMD(8)
NAME
lircmd - LIRC mouse daemon translates infrared signals into mouse events
SYNOPSIS
lircmd [options] [config-file]
DESCRIPTION
This daemon can simulate a MouseSystems, IntelliMouse or IMPS/2 type mouse. It gets the received buttons from lircd and converts them to
mouse events. To make this possible, lircmd needs a config file located in /etc/lircmd.conf. In this file you have to determine which but-
ton from which remote causes a mouse move or a mouse button click. You can also specify a special button which activates or deactivates
the mouse mode.
-h --help
display this message
-v --version
display version
-n --nodaemon
don't fork to background
-u --uinput
generate Linux input events
OPTIONS
If you provide the --nodaemon option lircmd won't fork to background.
On Linux systems the --uinput option will enable automatic generation of Linux input events. lircmd will open /dev/input/uinput and inject
the simulated mouse events into the Linux kernel rather than creating the /dev/lircm device.
FILES
lircmd will use syslogd to output error messages. It depends on your system configuration where they will show up.
DAEMONS
lircd and lircmd are daemons. You should start them in some init script depending on your system. There are some example scripts for dif-
ferent distributions in the contrib directory. lircmd has to be started after lircd as it connects to the socket lircd provides.
If you start lircd or lircmd from your shell prompt you will usually get back immediately to the prompt. Often people think that the pro-
gram has died. But this is not an error. lircd and lircmd are daemons. Daemons always run in background.
SEE ALSO
The documentation for lirc is maintained as html pages. They are located under html/ in the documentation directory.
lircmd 0.9.0-pre1 October 2010 LIRCMD(8)