Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

toridium

Reviews(1)
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.