← Back to team overview

indiv-screenlets-dev team mailing list archive

[Bug 734657] Re: OutputScreenlet capping output.

 

Well, a proper display of only the fitting lines would require a bigger
revamp of the whole code.

Anyway, because I had the same problem still, I added the "reverse"
option to display log files starting with their end, so disappearing
lines at the bottom become much less of a hassle.

And the new patch also solves another bug, namely ignoring the interval
setting after a restart until it's changed again.

BTW, I assume this is a feeble attempt at preventing shell escaping attacks: 
    commands.getoutput(self.run).replace('&','').replace('<','').replace('@','')
If so, then this has to be 
    commands.getoutput(self.run.replace('&','').replace('<','').replace('@',''))

** Patch added: "OutputScreenlet.0.1.p2.diff"
   https://bugs.launchpad.net/indiv-screenlets/+bug/734657/+attachment/1947394/+files/OutputScreenlet.0.1.p2.diff

-- 
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/734657

Title:
  OutputScreenlet capping output.

Status in Screenlets — individual widgets development:
  In Progress

Bug description:
  OutputScreenlet keeps tossing away parts of what it is supposed to
  display.

  I have it show 'sensors -A | tail -12' which should produce:
  coretemp-isa-0000
  Core 0:      +47.0°C  (high = +82.0°C, crit = +100.0°C)  

  coretemp-isa-0001
  Core 1:      +49.0°C  (high = +82.0°C, crit = +100.0°C)  

  coretemp-isa-0002
  Core 2:      +44.0°C  (high = +82.0°C, crit = +100.0°C)  

  coretemp-isa-0003
  Core 3:      +46.0°C  (high = +82.0°C, crit = +100.0°C)  

  But instead it skips the first characters, with the following output as a result:
  ore 0:      +47.0°C  (high = +82.0°C, crit = +100.0°C)  

  coretemp-isa-0001
  Core 1:      +49.0°C  (high = +82.0°C, crit = +100.0°C)  

  coretemp-isa-0002
  Core 2:      +44.0°C  (high = +82.0°C, crit = +100.0°C)  

  coretemp-isa-0003
  Core 3:      +46.0°C  (high = +82.0°C, crit = +100.0°C)