How to execute a linux command by pressing a remote key?

Which IR are you using?
meson-ir or amremote