irexec(1)


NAME

   irexec - run programs with one button press

SYNOPSIS

   irexec [options] [config_file]

DESCRIPTION

   irexec  executes  commands  on  an IR signal decoded by lircd, the LIRC
   daemon. It uses an lircrc config file where the  config =  entries  are
   executed. E. g., given the following config file snippet
       begin
           prog   = irexec
           button = KEY_RED
           config = echo "KEY_RED"
       end

   irexec  will echo KEY_RED on the terminal when the corresponding button
   is pushed on a remote.  The  command  is  an  arbitrary  shell  command
   executed asynchronously - irexec does not wait for it to complete.

ARGUMENTS

   config_file
       lircrc  configuration  file.  irexec  only uses entries with prog =
       irexec. The path defaults to ~/.config/lircrc.

OPTIONS

   -h, --help
       Display usage summary

   -v, --version
       Display version

   -d, --daemon
       Make irexec fork to background. In this case a config  file  should
       be  given  on  the command line as irexec won't be able to find any
       home directory.

   -D, --loglevel [level]
       Determine the amount of  logging  information.  [level]  can  be  a
       symbolic  syslog level: error, warning, info, notice or debug. lirc
       also defines three additional levels trace, trace and trace2  which
       gives  even  more  messages (trace2 bringing the most). However, in
       the log these messages are marked as debug. By default, no  logging
       is done.

   -n, --name <name>
       Use  this  program name instead of the default irexec as identifier
       in the lircd.conf file.

ENVIRONMENT

   LIRC_SOCKET_PATH
       Path  to  the  lircd  socket  irexec  reads   from,   defaults   to
       /var/run/lirc/lircd.

FILES

   ~/.config/lircrc
       Default config file

   /etc/lirc/lircrc
       Config file used by the systemd irexec service.

   ~/.cache/irexec.log
       Debug   log.   Setting   the  XDG_CACHE_HOME  environment  variable
       relocates this file to $XDG_CACHE_HOME/irexec.log

NOTES

   For versions up to 0.9.1  irexec  used  to   wait  until  the  executed
   program  terminated. Old configuration files thus often includes a  '&'
   appended to the command string to avoid being  stuck  in  the  command.
   This   is  not  required  in  0.9.2+  which  cannot  wait  for  command
   completion.

   irexec should run as  a  service.  The  contrib  directory  contains  a
   .desktop  file  which  could be dropped in ~/.local/autostart. Doing so
   creates a service which can be handled by regular desktop tools such as
   gnome-tweak-tool  on all major desktops. If running restricted commands
   such as powering off the machine is required, sudo(8) can  be  used  to
   allow regular users to run such commands.

   An  alternative is to use the irexec.service systemd service which runs
   as root (and can run in parallel with the desktop service).  Running as
   root  has severe security implications.  See the Configuration Guide in
   the html documentation.

SEE ALSO

   lircrc(5)
       The lircrc configuration file.


More Linux Commands

manpages/smoltDeleteProfile.1.html
smoltDeleteProfile(1) - Delete Smolt hardware profile from s
smoltDeleteProfile deletes the machines profile from a remote Smoon server. Smolt is a cross-desktop hardware reporting tool for GNU/Linux based systems. OPTION

manpages/git-format-patch.1.html
git-format-patch(1) - Prepare patches for e-mail submission
Prepare each commit with its patch in one file per commit, formatted to resemble UNIX mailbox format. The output of this command is convenient for e-mail submis

manpages/aa_change_hat.2.html
aa_change_hat(2) - change to or from a "hat" within a AppArm
aa_change_hat.2 - An AppArmor profile applies to an executable program; if a portion of the program needs different access permissions than other portions, the

manpages/get_escdelay.3ncurses.html
get_escdelay.3ncurses - get_escdelay(3ncurses) - curses thread support (Man Page)...
This implementation can be configured to provide rudimentary support for multi-threaded applications. This makes a different set of libraries, e.g., libncursest

manpages/fpurge.3.html
fpurge(3) - purge a stream (Library - Linux man page).......
The function fpurge() clears the buffers of the given stream. For output streams this discards any unwritten output. For input streams this discards any input r

manpages/hash.3.html
hash(3) - hash database access method - Linux manual page...
hash.3 - Note well: This page documents interfaces provided in glibc up until version 2.1. Since version 2.2, glibc no longer provides these interfaces. Probabl

manpages/ImageByteOrder.3.html
ImageByteOrder(3) - image format functions and macros.......
The XListPixmapFormats function returns an array of XPixmapFormatValues structures that describe the types of Z format images supported by the specified display

manpages/XRebindKeysym.3.html
XRebindKeysym(3) - handle keyboard input events in Latin-1
The XLookupKeysym function uses a given keyboard event and the index you specified to return the KeySym from the list that corresponds to the KeyCode member in

manpages/route.conf.5.html
route.conf(5) - Configuration for routing table has changed
The file /etc/route.conf is no longer used starting with versions SuSE Linux 8.0. Please see routes(5) for the routing configuration. To do so issue $ man route

manpages/XkbAllocGeomProps.3.html
XkbAllocGeomProps(3) - Allocate geometry properties.........
XkbAllocGeomProps.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyb

manpages/getmouse_sp.3ncurses.html
getmouse_sp(3ncurses) - curses screen-pointer extension.....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/FcConfigReference.3.html
FcConfigReference(3) - Increment config reference count.....
Add another reference to config. Configs are freed only when the reference count reaches zero. If config is NULL, the current configuration is used. In that cas





We can't live, work or learn in freedom unless the software we use is free.