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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content