Comments (7)
I believe this has already been fixed. Curses used to be initialized for formatted output but this is no longer the case. What you describe works for me.
from bmon.
I have version 3.6 on OS X, installed with homebrew. I'll try building from source.
from bmon.
Still doesn't work with a fresh clone. Any idea why?
yohai@imac-5k ~/code/software/bmon$ bmon -o format
lo0 44484079 44484079 629458 629458
en0 248662754 38887010 296994 251607
en1 0 0 0 0
en2 0 0 0 0
en3 0 0 0 0
bridge0 0 342 0 1
^C
yohai@imac-5k ~/code/software/bmon$ bmon -o format > foo.txt
^C
yohai@imac-5k ~/code/software/bmon$ ls -lrt
total 984
drwxr-xr-x 3 yohai staff 102 30 jui 12:05 m4
-rw-r--r-- 1 yohai staff 5402 30 jui 12:05 configure.ac
-rwxr-xr-x 1 yohai staff 52 30 jui 12:05 autogen.sh
-rw-r--r-- 1 yohai staff 1587 30 jui 12:05 README.md
-rw-r--r-- 1 yohai staff 619 30 jui 12:05 NEWS
-rw-r--r-- 1 yohai staff 143 30 jui 12:05 Makefile.am
-rw-r--r-- 1 yohai staff 1023 30 jui 12:05 LICENSE.MIT
-rw-r--r-- 1 yohai staff 1192 30 jui 12:05 LICENSE.BSD
-rw-r--r-- 1 yohai staff 0 30 jui 12:05 ChangeLog
-rwxr-xr-x 1 yohai staff 262681 30 jui 12:05 configure
-rw-r--r-- 1 yohai staff 49976 30 jui 12:05 aclocal.m4
drwxr-xr-x 8 yohai staff 272 30 jui 12:05 build-aux
-rw-r--r-- 1 yohai staff 25532 30 jui 12:05 Makefile.in
drwxr-xr-x 6 yohai staff 204 30 jui 12:05 man
drwxr-xr-x 6 yohai staff 204 30 jui 12:05 include
drwxr-xr-x 6 yohai staff 204 30 jui 12:05 examples
-rwxr-xr-x 1 yohai staff 35180 30 jui 12:05 config.status
-rw-r--r-- 1 yohai staff 55532 30 jui 12:05 config.log
-rw-r--r-- 1 yohai staff 25779 30 jui 12:05 Makefile
drwxr-xr-x 52 yohai staff 1768 30 jui 12:05 src
-rw-r--r-- 1 yohai staff 0 30 jui 12:07 foo.txt
yohai@imac-5k ~/code/software/bmon$
I'm running OS X 10.10.2 (Yosemite).
from bmon.
This seems to be OS X specific then. Works fine on Linux:
[tgraf@lsx bmon]$ src/bmon -o format > l
^C
[tgraf@lsx bmon]$ wc -l l
262 l
Can you try the following?
bmon -o format:stderr 2> foo.txt
from bmon.
bmon -o format:stderr 2> foo.txt
produces a output file with the data, it works.
from bmon.
This may be related to OS X buffering stdout which delays writing to stdout immediately. You may have to use unbuffer or stdbuf if you want to use stdout. Just a guess though.
from bmon.
The problem was indeed caused by buffering - unbuffer
solved it. Thanks!
from bmon.
Related Issues (20)
- missing documentation for some configuration options (bmonrc)
- Removing bmon HOT 4
- Average Bandwidth Usage
- Use unicode ▄ and █ for the graphical statistics instead of "|" and ":"
- Remove "Really quit" nag
- bmon 4.0: curses graph shows identical RX & TX data
- Feature: Unix Timestamp HOT 1
- How to enable transparent background? HOT 1
- Segfault error 6 in libc-2.27.so HOT 1
- Configure input option via bmon.conf
- Formatted output always reports 0 for initial tx/rx rate
- bmon issue with virtualbox
- `__unused__` macro causes naming conflict with Xcode 12
- non-standard location ncurses
- Return option to show hostname in the top bar.
- Graphs show no data with -r greater than 1 HOT 1
- Add option to build without ipv6 support
- How to specify the unit in formatted output
- [Feature request] configurable movement keybindings
- [Feature Query/Request] Toggle suppress display qdisc/class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmon.