<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE>LIRC - Linux Infrared Remote Control</TITLE> <LINK REL="stylesheet" TYPE="text/css" HREF="lirc.css"> <LINK REL="shortcut icon" HREF="../images/favicon.ico"> <META NAME="description" CONTENT="LIRC - Linux Infrared Remote Control"> <META NAME="keywords" CONTENT="linux remote control, multimedia"> <META charset="UTF-8"> </HEAD> <body> <TABLE CLASS="menu"><TR> <TD CLASS="menu"><IMG class="menuimg" SRC="../images/diode.gif" ALT="LIRC icon" ALIGN="LEFT"></TD> <TD><IMG class="menuimg" SRC="../images/lirc.gif" ALT="LIRC logo" ALIGN="RIGHT"></TD> </TR></TABLE> <h1>IRW</h1> Section: User Commands (1)<br>Updated: Last change: Sep 2015<br><a href="#index">Index</a> <a href="index.html">Return to Main Contents</a><hr> <a name="lbAB"> </a> <h2>NAME</h2> <p> <b>irw</b> - Send data from Unix domain socket to stdout <a name="lbAC"> </a> </p> <h2>SYNOPSIS</h2> <p> <b>irw</b> [<i>socket</i>] <a name="lbAD"> </a> </p> <h2>DESCRIPTION</h2> <p> <b>irw</b> will connect to any Unix domain socket and print the received data to stdout. Without a <i>socket</i> argument it will watch <i>/run/lirc/lircd</i>. Useful for debugging. </p> <p> Options: </p> <dl> <div><dt> <b>-h</b> <i>--help</i> </dt></div> <dd> Display usage summary </dd> <div><dt> <b>-v</b> <i>--version</i> </dt></div> <dd> Display version </dd> </dl> <a name="lbAE"> </a> <h2>SIGNALS</h2> <p> On receiving SIGUSR1 <b>irw</b> makes a clean exit. </p> <p> <a name="lbAF"> </a> </p> <h2>EXAMPLE</h2> <p> Dumping the default socket while pressing one button: </p> <p> </p> <pre> myhost $ irw 0000000000f40bf0 00 KEY_POWER ANIMAX 0000000000f40bf0 01 KEY_POWER ANIMAX 0000000000f40bf0 02 KEY_POWER ANIMAX 0000000000f40bf0 03 KEY_POWER ANIMAX 0000000000f40bf0 04 KEY_POWER ANIMAX 0000000000f40bf0 05 KEY_POWER ANIMAX ^C myhost $ Note that the second counter is incremented for each new event generated by the single key press. This is important for correct lircd operation. </pre> <a name="lbAG"> </a> <h2>NOTES</h2> <p> Since the lircd socket supports multiple clients, <b>irw</b> can run in parallel with other applications. </p> <p> <b>irw</b> does nothing more than dumps a unix-domain socket, a task which many standard tools also can do. E. g., the <a href="ncat.html">ncat</a>(1) tool can be used instead of irw to provide more flexibility (but without a sane default socket): </p> <pre> ncat -U /run/lirc/lircd </pre> <p> <a name="lbAH"> </a> </p> <h2>SEE ALSO</h2> <p> The documentation for <b>lirc</b> is maintained as html pages. They are located under html/ in the documentation directory. </p> <p> </p> <hr> <a name="index"> </a><h2>Index</h2> <dl> <div><dt><a href="#lbAB">NAME</a></dt></div> <dd> </dd> <div><dt><a href="#lbAC">SYNOPSIS</a></dt></div> <dd> </dd> <div><dt><a href="#lbAD">DESCRIPTION</a></dt></div> <dd> </dd> <div><dt><a href="#lbAE">SIGNALS</a></dt></div> <dd> </dd> <div><dt><a href="#lbAF">EXAMPLE</a></dt></div> <dd> </dd> <div><dt><a href="#lbAG">NOTES</a></dt></div> <dd> </dd> <div><dt><a href="#lbAH">SEE ALSO</a></dt></div> <dd> </dd> </dl> <hr> <p> This document was created by <a href="index.html">man2html</a>, using the manual pages.<br> Time: 12:55:08 GMT, February 16, 2019 </p> <p class="footer"> [<A HREF="http://www.lirc.org/">LIRC homepage</A>] </p> </body> </html>