logger command between on RHEL6.2 and on RHEL6.4 is different

Solution Verified - Updated -

Issue

  • On RHEL6.2, logger command output includes space after "FOO:" as follows:
  • On RHEL6.2:
 # logger -t "FOO:BAR" "foobarbaz"

 /var/log/messages
 ----------------------------------------------------
  Aug  8 23:10:04 RHEL62 FOO: BAR: foobarbaz
                             ^ <- Space is included.
 ----------------------------------------------------
  • On the other hand, on RHEL6.4, logger command output doesn't include space after "FOO:" as follows:
  • On RHEL6.4:
 # logger -t "FOO:BAR" "foobarbaz"

 /var/log/messages
 ----------------------------------------------------
  Aug  8 23:12:20 RHEL64 FOO:BAR: foobarbaz
                             ^ <- Space is not included.
 ----------------------------------------------------

Environment

  • Red Hat Enterprise Linux 6 Update 2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.