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