irexec is a daemon packaged with LIRC, which listens for IR events to run arbitrary commands.
LIRC.org