Why does 'who -b' command shows different date format when executed as a cron job ?
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.