@rewolff I'm stilll stucked 😆 ....
Now the -p (split) mode works perfectly but since it uses snprintf nothing writes to stdout and I'm unable to read data from shell process using inputstreamreader from Android in my case....
The -l (raw) mode works OK in my case but it doesn't display same data as split mode :
This is how split mode displays
snprintf(newLine, sizeof(newLine), "%s %d %d %d %.1f %.1f %.1f",
name, net_loss(at), net_returned(at), net_xmit(at),
net_best(at) / 1000.0, net_avg(at) / 1000.0,
net_worst(at) / 1000.0);
But if i change snprintf to printf and after fflush(stdout); it fill screen with random data without ordering or something, just can't use it that way...
Can you please help me how to make -l (--raw) mode modify to display the same data like in the same line:
position, host, net_loss, net_returned, net_xmit, net_best, net_avg, net_worst ...... etc.
I really need help for one project of mine but can't write C code myself and i have 15 days strugling with it 😆 .....
@rewolff I'm stilll stucked 😆 ....
Now the -p (split) mode works perfectly but since it uses
snprintfnothing writes to stdout and I'm unable to read data from shell process using inputstreamreader from Android in my case....The -l (raw) mode works OK in my case but it doesn't display same data as split mode :
This is how split mode displays
But if i change
snprintftoprintfand afterfflush(stdout);it fill screen with random data without ordering or something, just can't use it that way...Can you please help me how to make -l (--raw) mode modify to display the same data like in the same line:
position, host, net_loss, net_returned, net_xmit, net_best, net_avg, net_worst ...... etc.
I really need help for one project of mine but can't write C code myself and i have 15 days strugling with it 😆 .....