New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"fb_lock_print -ia" output is not flushed to a file between iterations [CORE2354] #2777
Comments
Commented by: @AlexPeshkoff Works for me. fbs bin # ./fb_lock_print -ia 1 5 >a Average: 0 0 0 0 0 And must say there is no special output processing - just fprintf(stdout, .....) |
Commented by: Saulius Vabalas (svabalas) Apparently file is flushed only when fb_lock_print finishes execution. If it gets killed - output file is empty. In my case (see params 10 9999) output file stays at 0 size all the time. What I need is to run "fb_lock_print -ia 10 9999" to a file to collect statistics and at the same time wanna tail that file from different session to review historical results. Can output file be flushed between iterations like "iostat" does? |
Modified by: Saulius Vabalas (svabalas)description: FB CS 1.5 or 2.1.RC1 on Linux. Can not redirect "fb_lock_print -ia 10 9999" output to a file. For some reason standard => FB CS 1.5 or 2.1.RC1 on Linux. Can not redirect "fb_lock_print -ia 10 9999" output to a file. For some reason standard Update: Problem is output does not get flushed to a file between iterations. summary: "fb_lock_print -ia" output redirection to a file does not work => "fb_lock_print -ia" output is not flushed to a file between iterations |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @dyemanovassignee: Alexander Peshkov [ alexpeshkoff ] |
Commented by: @dyemanov Pavel, I'm not sure this ticket must be closed, as there's an extra feedback provided by the reporter after Alex's resolution. I'm assigning it to Alex to decide whether it should be re-opened for fixing or not. |
Commented by: @AlexPeshkoff Agreed, for this particular utility requirement to flash buffer is correct. |
Modified by: @AlexPeshkoffstatus: Closed [ 6 ] => Reopened [ 4 ] resolution: Cannot Reproduce [ 5 ] => |
Modified by: @AlexPeshkoffstatus: Reopened [ 4 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.5 Beta 1 [ 10251 ] Fix Version: 2.1.3 [ 10302 ] Fix Version: 2.0.6 [ 10303 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @pavel-zotovQA Status: No test |
Submitted by: Saulius Vabalas (svabalas)
FB CS 1.5 or 2.1.RC1 on Linux. Can not redirect "fb_lock_print -ia 10 9999" output to a file. For some reason standard
redirection does not work, all output is going only into console. Is there any trick to do that, some special switch or it's a "random feature" of this
utility?
Update: Problem is output does not get flushed to a file between iterations.
Commits: 118a70a a931ffe cc69cf7
The text was updated successfully, but these errors were encountered: