Not all output is captured from a command
Run "systemctl status httpd" remotely on a host - no output is captured.
Not sure what's causing it - it seems to be sent on stdout. Even doing -l --no-pager doesn't seem to help.
Fixes #11593 - handle encoding of the command output properly
Or at lest, enforcing the UTF-8 doesn't cause encoding issues, when
the command produces UTF characters.
#1 Updated by Ivan Necas almost 7 years ago
- Status changed from New to Assigned
- Assignee set to Ivan Necas
- Target version set to 85
Thanks for reporting, I was able to reproduce the issue: it seems it has something to do with colorful output (that the systemctl produces).
The proposed solution would be just to force just ascii as the output.
#2 Updated by Stephen Benjamin almost 7 years ago
I figured it was specific to systemd, but don't see a way to turn it off. It seems to do some automatic detection about the capabilities of the current context.
`systemctl status httpd | tee` seems to force colors off locally but still no output with the remote execution.
#5 Updated by Ivan Necas almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_proxy_plugin|2de8b797e45d4d1e3dff3d1c8e1c66e9b206148c.