Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
toridium
bytoridium, August 6, 2013
awk -v now=`date +%s` 'BEGIN{print strftime("%b %d %T", now)}'
gives me Aug 06 19:57:43 and log file have padded zeros Aug 6 19:57:11
I use 'BEGIN{print strftime("%b %e %T", now-seconds)}'` in the script to get it to work.
gives me Aug 06 19:57:43 and log file have padded zeros Aug 6 19:57:11
I use 'BEGIN{print strftime("%b %e %T", now-seconds)}'` in the script to get it to work.