Need help with who -b command
Hi,
I am using who -b command to find out last reboot (host) date/time and insert data into Oracle. However when I issue this command directly in shell prompt it is giving in different format and when the same script is called through Java (front end) it is giving different format. However when I say which who both resolves to same "who". Please help me to resolve the same. From Unix prompt: who -b system boot 2012-12-07 02:22 which who /usr/bin/who From Program log file (using set -x): + which who /usr/bin/who + who -b system boot Dec 7 02:22 Thanks Manick. |
Too my knowledge, the output of the who command is influenced by the locale setting.
Code:
$ echo $LC_TIME |
Thanks for the hint. Setting LOCALE did resolve the issue.
Thanks, Manick. |
All times are GMT -5. The time now is 06:39 AM. |