Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of "Broken pipe" errors with genmon plugin #51

Open
bodqhrohro opened this issue Dec 29, 2019 · 5 comments
Open

A lot of "Broken pipe" errors with genmon plugin #51

bodqhrohro opened this issue Dec 29, 2019 · 5 comments

Comments

@bodqhrohro
Copy link

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

@mckaygerhard
Copy link

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!

@bodqhrohro
Copy link
Author

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

@mckaygerhard
Copy link

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)

@bodqhrohro
Copy link
Author

The problem is not with source lines, but with output lines. echo -e "tist\nziz" works just the same way.

@mckaygerhard
Copy link

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

if (text[len] == '\n')
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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants