You are not logged in.

#1 2009-12-04 18:18:10

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

bmon -o format, command not found, help!

Hi,

I'm looking for something as simple as it can be, with one-line conky-like output like

 dl: 150kpbs ul: 60kbps

- that's all I need.

EDIT:

I'm trying to achieve something with bmon, however I keep getting errors roll

bmon -p wlan0 -o format:fmt="$(item:name)\n"
zsh: command not found: item:name

Last edited by vi3dr0 (2009-12-04 18:53:58)


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#2 2009-12-06 16:15:31

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: bmon -o format, command not found, help!

The tag $(item:name) is caught by zsh, it tries to interpret it as a command substitution and complains about not having such a command (of course). You should protect it from zsh with simple quotes to let it interpret by bmon:

bmon -p wlan0 -o 'format:fmt=$(item:name)\n'

Actually for download and upload rates you have to write 'attr:rxrate:bytes' and 'attr:txrate:bytes' instead of 'item:name', respectively.
In this case you always get bps, so if you would like it to be in kbps, you should catch the output and divide it by 1024. (Possibly some scripting is needed.)


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

#3 2009-12-06 16:35:17

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: bmon -o format, command not found, help!

Thank you very much barto, everything is crystal clear now wink


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

Board footer

Powered by FluxBB