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
- Install Go, version 1.11 or later
- Clone and change to this repository
go build -o fcu