Project

General

Profile

Bug #11593

Not all output is captured from a command

Added by Stephen Benjamin almost 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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.

Associated revisions

Revision 2de8b797 (diff)
Added by Ivan Necas almost 7 years ago

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.

Revision ac49cdeb
Added by Ivan Necas almost 7 years ago

Merge pull request #7 from iNecas/handle-encoding

Fixes #11593 - handle encoding of the command output properly

History

#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.

#3 Updated by The Foreman Bot almost 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/7 added
  • Pull request deleted ()

#4 Updated by Marek Hulán almost 7 years ago

  • Legacy Backlogs Release (now unused) set to 83

#5 Updated by Ivan Necas almost 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF