Nature40 / rtlsdr_fcu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fcu, flow control unit

Simple command line util to pipe stdin to stdout, but terminates if nothing has been sent for some time. The exiting is accompanied by the closing of both devices or also by executing some command.

$ ./fcu --help
usage: fcu [<flags>] <timeout>

Pipe stdin to stderr, but terminates if nothing has been sent for some time.

Flags:
  -h, --help       Show context-sensitive help (also try --help-long and --help-man).
  -v, --verbose    logging to stderr
  -e, --cmd=CMD    command to be executed afterwards
      --sh         execute the command within a "sh"
  -b, --buf=65536  buffer size in bytes

Args:
  <timeout>  duration until termination, e.g., 5s

Build

  1. Install Go, version 1.11 or later
  2. Clone and change to this repository
  3. go build -o fcu

About

License:GNU General Public License v3.0


Languages

Language:Go 100.0%