unix - Pipeline composed of tr, cut, and xargs does not work -


a program produces sporadically new output on command line. process each new line, , send data via telnet remote server.

the initial command line tab-limited, interested in sixth field:

2016-11-08 21:27:01 +0000       017ef7cb-9196-4386-befa-90823e5972a0    47373226168780  ee6626b0-0c65-45d9-b644-40ea42bdc5b7    sleep   9.001473012     0       0 

my command looks likes this:

$my_application | stdbuf -i0 -ol tr -s '\t' ' ' | cut -d' ' -f8 | xargs -0 -n1 -i time echo runtime time `date +%s`000 | nc <ip> <port> 

i able filter out 9.001473012 using 'cut' command. term not propagated xargs. nc final step in pipeline, unable reach yet.

could please me? don't understand why result 'cut' not piped xargs. there issue tr/cut, found hint use 'stdbuf'. did not me 'cut' or 'xargs' later on.

best labrassbandito


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -