Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

irexec(1) [debian man page]

IREXEC(1)							   User Commands							 IREXEC(1)

NAME
irexec - run programs with one button press SYNOPSIS
irexec [options] [config_file] DESCRIPTION
This program lets you execute arbitrary commands on an IR signal decoded by lircd, the LIRC daemon. You can give irexec a command line parameter which has to be a name of a valid config file. If no command line parameters are given irexec reads the default config file which is usually ~/.lircrc. If irexec executes a program it will wait until this program terminates. So append a '&' to the command string if you don't want that. The config string consists of the command to be run. -h --help display usage summary -v --version display version -d --daemon run in background -n --name use this program name OPTIONS
If you add the --daemon option irexec will fork to background. That way you can easily start irexec from an init script. In this case you should specify a config file on the command line as irexec won't be able to find your home directory. Potential uses are shutting down the computer, starting a dial-up connection etc. NOTE
If you start irexec, it reads your ~/.lircrc and reacts only on prog= entries that point to irexec. If you have included more than one pro- gram in your .lircrc, then start all these programs, they react itself only to their according entries in .lircrc. SEE ALSO
The documentation for lirc is maintained as html pages. They are located under html/ in the documentation directory. irexec 0.9.0-pre1 October 2010 IREXEC(1)

Check Out this Related Man Page

LIRCRCD(1)								FSF								LIRCRCD(1)

NAME
lircrcd - daemon to handle consistent .lircrc state among client applications SYNOPSIS
lircrcd [options] config-file DESCRIPTION
lircrcd reads the given .lircrc config file and synchronises the mode that the LIRC clients using this config file (irexec(1), irxevent(1) , etc.) are in. Using lircrcd has to be explicitly enabled in the config file by adding the following line at the beginning of the file: #! lircrcd -h --help display this message -v --version display version -p --permission=mode file permissions for socket -o --output=socket output socket filename OPTIONS
-p, --premission=mode The --permission option gives the file permission of the Unix domain socket lircrcd creates on startup in octal representation. Read the documentation for chmod for further details. If no --permission option is given when the socket is created the default is to give only the user owning the file read and write permissions (0600 in octal representation). -o, --output=socket With the --output option you can select the Unix domain socket, which lircrcd will create. The default is to append a "d" character to the config filename given. SEE ALSO
The documentation for lirc is maintained as html pages. They are located under html/ in the documentation directory. lircrcd 0.8.7pre1 May 2010 LIRCRCD(1)
Man Page

10 More Discussions You Might Find Interesting

1. Programming

Command line parameter for C program

I am writing a C program that part of the idea is to using a command line parameter to control not to run certain part of the sub program. I am totally new to C, I do not have any idea how to pass a command line arguments from a C program. Can anyone help ?! Thanks (3 Replies)
Discussion started by: Wing m. Cheng
3 Replies

2. UNIX for Dummies Questions & Answers

Made command into a script but now won't run

Hello, After seeing in a Unix cheatsheet that I could add commands into a file and run that file as a command to save on typing, i tried it with this: #! /bin/csh # Backup website excluding directories that do not change rsync -e "ssh -p 2222" -axzvc --progress --stats --compress-level=9... (9 Replies)
Discussion started by: patwa
9 Replies

3. UNIX for Dummies Questions & Answers

Parameters and background

Hello everyone, can you advice on how to execute a script passing parameters to it as well as requesting it to run in the background? It seems that my last character of the command line (& for background execution) gets taken in as an additional parameters and the job runs in the foreground.... (8 Replies)
Discussion started by: gio001
8 Replies

4. UNIX for Dummies Questions & Answers

find command and run it

Hi guys, how would I find out if the command/script exists on the system ( HP-UX, Linux ) and if it does run it so it would display the output? lets say I can do which any-command and if it finds any-command I want to run it ... I can use echo $? to see what the which command... (2 Replies)
Discussion started by: mirusko
2 Replies

5. Programming

Run external program in background

Hi, in my program i need to run an external program in background.I am aware that there are at least 2 alternatives for this: 1)fork+exec 2)system("program &"); I have read several posts about this,and they all tend to suggest to use fork+exec (and that's what i am doing now). I have some... (2 Replies)
Discussion started by: Zipi
2 Replies

6. UNIX for Dummies Questions & Answers

Different ways in which applications are Launched.

How does X windows system launch a program? Does X give init a command (fork) or does x give BASH a command? Can/does X interact with init directly or does everything go through BASH? :wall: Thanks in advance! (4 Replies)
Discussion started by: theKbStockpiler
4 Replies

7. Shell Programming and Scripting

BASH - Handling background processes - distributed processing

NOTE: I am using BASH and Solaris 10 for this. Currently in the process of building a script that has a main "watcher" daemon that reads a configuration file and starts background processes based on it's global configuration. It is basically an infinite loop of configuration reading. Some of the... (4 Replies)
Discussion started by: dcarrion87
4 Replies

8. UNIX for Dummies Questions & Answers

How to access/run c programs on Putty?

Hi all, I wrote a couple noobie programs and had them compiled over Putty (using gcc), but I don't know what command I should use to run them. Please assume that I'm a complete noob when it comes to programming and putty commands. Thank you for your help! (1 Reply)
Discussion started by: Recycalable
1 Replies

9. Shell Programming and Scripting

Html parsing - get line after specific string till a point

Hi all :) It sounds complex, for example I want to find the whole html file (there are 5 entries of this string and I need to get all of them) for the string "<td class="contentheading" width="100%">", get the next line from it only till the point that says "</td>", plus removing \t (tabs) ... (6 Replies)
Discussion started by: hakermania
6 Replies

10. Red Hat

Linux programming

Develop a program to display file given on the command line to STDOUT, please give sample program (2 Replies)
Discussion started by: ainstin
2 Replies