pari: trunk r208 - /trunk/gui_configs/gui_sysinfo

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Jan 3 12:12:50 MST 2007


Author: pari
Date: Wed Jan  3 13:12:49 2007
New Revision: 208

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=208
Log:
fix: Search for both 'Jan 03' and 'Jan  3' in /var/log/asterisk/messages 

Modified:
    trunk/gui_configs/gui_sysinfo

Modified: trunk/gui_configs/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/trunk/gui_configs/gui_sysinfo?view=diff&rev=208&r1=207&r2=208
==============================================================================
--- trunk/gui_configs/gui_sysinfo (original)
+++ trunk/gui_configs/gui_sysinfo Wed Jan  3 13:12:49 2007
@@ -26,4 +26,5 @@
 
 THISMONTH=`/bin/date +%b`
 THISDAY=`/bin/date +%d`
-/bin/grep /var/log/asterisk/messages -e "$THISMONTH $THISDAY" > /var/lib/asterisk/static-http/config/bkps/today_log.html
+THIS_DAY=`/bin/date +%_d`
+/bin/grep /var/log/asterisk/messages -e "$THISMONTH\( $THISDAY\| $THIS_DAY\)" > /var/lib/asterisk/static-http/config/bkps/today_log.html



More information about the asterisk-gui-commits mailing list