Skip to contentSkip to conversation

Report to STDOUT by default, reintroduce the -d, --dump switch

Powertop Jaroslav Skarvada 1 participant 1 message May 5, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jaroslav Skarvada

author
#1 lore raw

Hi,

I think it would be useful if PowerTOP could by default write reports to STDOUT (the output could be easily filtered through pipes).

I proposed patch [1], which:
- makes the filename argument of CSV, HTML reports optional (was previously mandatory), if it is not specified it outputs to STDOUT
- reintroduced the old -d, --dump switch, which writes report in plain text (which could be also useful and at least keeps user interface backward compatibility with powertop 1.x)

thanks & regards

Jaroslav

[1] https://github.com/fenrus75/powertop/pull/22