output applet hangs when commands take longer to execute than update interval
Bug #734469 reported by
crazy ivan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Individual Screenlets |
Fix Committed
|
Medium
|
Nicolas Krzywinski |
Bug Description
Hi I would like to tail some files using the output screenlet, but here is what happens:
"top -b" and "tail -f" kills the poor output screenlet. It just hangs entirely.. The screenlet includes "top" as a preconfigured command, so in principle the output screenlet should be capable of doing it..
Also when I enter "tty" I get "not a tty", but that is not the problem. Even such a script as "sleep 2; echo 2" kills it.
Some more info is given in this post
http://
Using screenlets 0.1.2 on ubuntu 10.10 with metacity WM.
Changed in screenlets: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
affects: | screenlets → indiv-screenlets |
Changed in indiv-screenlets: | |
status: | Confirmed → In Progress |
Changed in indiv-screenlets: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Found a solution to circumvent this problem and now my monitor script reads:
#!/bin/sh .all.log) -gt 1000000 && echo "Log file exceeded maximum size" > /home/user/.all.log
system=`since /var/log/*.log | sed '/nothing new/ d' | sed '/message repeated/ d' | sed '/==>/ d' `
test "$system" != "" && echo $system >> /home/user/.all.log
tail -n 10 /home/user/.all.log
test $(stat -c "%s" /home/user/
Anyhow, this is clearly not the desired behavior for the screenlet.