Why does 'who -b' command shows different date format when executed as a cron job ?

Solution Verified - Updated -

Issue

  • Why does remote commands executed from Satellite use POSIX time format when showing date and time as below,
#!/bin/sh
/usr/bin/who -b

Start Date: 2015-06-24 12:34:35
End Date: 2015-06-24 12:34:35
Return Code: 0
Raw Output: view/download raw script output
Filtered Output:

system boot Jun 23 07:35

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Satellite 5.x

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