|
From: <zmo...@ie...> - 2017-05-07 18:35:38
|
On 05/04/2017 12:41 PM, tth wrote:
> So now, "oscdump 9000 | cat -n" for numbering
> events make the job...
alternatively you could just use the 'unbuffer' command (from 'expect')
to prevent line-buffering.
unbuffer oscdump 9000 | cat -n
this has the slight drawback, that it will also turn stderr of oscdump
into stdout.
another solution is to use 'stdbuf' (from 'GNU coreutils'), which allows
you to adjust the lines-per-buffer per stream:
stdbuf -o0 ./oscdump 9999 | cat -n
both solutions do not require any source-code change and/or recompile.
dsr
IOhannes
|