I use specific program named lirc_monitor is used to monitoring pressed keys on the embedded ARM device. I wanna redirect all output to file but I'm stuck I spended ~2 hours to check every option what I found and... nothing! file all the time empty..
Maybe someone has any ideas? to verify this problem. Thank you.
-sh-3.2# lirc_monitor
{lirc monitor}: 0000000000000000 00 CURSOR_DOWN MTK_IR
{lirc monitor}: 0000000000000000 00 CURSOR_DOWN MTK_IR
{lirc monitor}: 0000000000000000 00 CURSOR_DOWN MTK_IR
{lirc monitor}: 0000000000000000 00 CURSOR_DOWN MTK_IR
{lirc monitor}: 0000000000000000 00 CURSOR_DOWN MTK_IR
{lirc monitor}: 0000000000000000 00 CURSOR_DOWN MTK_IR
You can redirect the output stream with
>For more convenience, use
tee, which will write to both the file andstdoutIf
>doesn't redirect the output (you still see the output with simply>), it's going tostderr, and you can redirect it with2> filenamedirectly or2>&1to join thestderrtostdoutstream