fbpanel
fbpanel copied to clipboard
A lot of "Broken pipe" errors with genmon plugin
Plugin {
type = genmon
config {
Command = /usr/sbin/getsysload
PollingTime = 1
}
}
I get a lot of errors like
/usr/sbin/getsysload: line 37: echo: write error: Broken pipe
/usr/sbin/getsysload: line 19: echo: write error: Broken pipe
/usr/sbin/getsysload: line 39: echo: write error: Broken pipe
/usr/sbin/getsysload: line 19: echo: write error: Broken pipe
/usr/sbin/getsysload: line 49: echo: write error: Broken pipe
/usr/sbin/getsysload: line 64: echo: write error: Broken pipe
/usr/sbin/getsysload: line 72: echo: write error: Broken pipe
/usr/sbin/getsysload: line 79: echo: write error: Broken pipe
/usr/sbin/getsysload: line 87: echo: write error: Broken pipe
/usr/sbin/getsysload: line 92: echo: write error: Broken pipe
/usr/sbin/getsysload: line 102: echo: write error: Broken pipe
/usr/sbin/getsysload: line 103: echo: write error: Broken pipe
sed: couldn't flush stdout: Broken pipe
/usr/sbin/getsysload: line 117: echo: write error: Broken pipe
/usr/sbin/getsysload: line 129: echo: write error: Broken pipe
/usr/sbin/getsysload: line 130: echo: write error: Broken pipe
/usr/sbin/getsysload: line 131: echo: write error: Broken pipe
/usr/sbin/getsysload: line 132: echo: write error: Broken pipe
/usr/sbin/getsysload: line 133: echo: write error: Broken pipe
/usr/sbin/getsysload: line 134: echo: write error: Broken pipe
/usr/sbin/getsysload: line 135: echo: write error: Broken pipe
each time this script is run. The same script works well in genmon plugin for xfce4-panel.
fbpanel 7.0-4+b1 on Debian GNU/Linux 11
lot of sudo shit and systemd close to.. in the script, seems a permission problems.. out of scope of fbpanel.. so this issue must be closed!
Nah, nothing related to permissions. I told already that the same script runs well under xfce4-panel.
The plugin just seems to be unable to display multi-line text. This tiny script has the same issue:
#!/bin/sh
echo tist
echo ziz
ok @bodqhrohro what about made a single line script and that call the other script? (just bit nasty but if works we can make a workaround)
The problem is not with source lines, but with output lines. echo -e "tist\nziz"
works just the same way.
output lnes are source input for fbpanell i am using fbpanel 0.6 with debian 6.9 squeeze and never got and error except for the batery monitor..
as i can see it here https://github.com/aanatoly/fbpanel/blob/478754b687e2b48b111507ea22e8e2a001be5199/plugins/genmon/genmon.c#L54 it can parse only one line and last char are the\n
so obviously the new line are end of the result, so if too many lines are in pipe will be an error..
fbpanel is a single and simple application.. if are too complex or devenge more complex implementations will be out of scope..