jlyons: trunk r210 - in /trunk: config/sysinfo.html gui_configs/gui_sysinfo

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Jan 3 14:43:53 MST 2007


Author: jlyons
Date: Wed Jan  3 15:43:53 2007
New Revision: 210

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=210
Log:
Using bash expansion instead of a pipe to specify the correct date. also removing unnecessary line

Modified:
    trunk/config/sysinfo.html
    trunk/gui_configs/gui_sysinfo

Modified: trunk/config/sysinfo.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/sysinfo.html?view=diff&rev=210&r1=209&r2=210
==============================================================================
--- trunk/config/sysinfo.html (original)
+++ trunk/config/sysinfo.html Wed Jan  3 15:43:53 2007
@@ -32,8 +32,7 @@
 function thisday_log(){
 	$('status_message').style.display="block";
 	if($('log_day').value < 10 ){
-		var tmp_command = "/bin/grep /var/log/asterisk/messages -e '" + $('log_month').value + " 0" + $('log_day').value + " ' > /var/lib/asterisk/static-http/config/bkps/today_log.html";
-		tmp_command += " ; /bin/grep /var/log/asterisk/messages -e '" + $('log_month').value + "  " + $('log_day').value + " ' >> /var/lib/asterisk/static-http/config/bkps/today_log.html";
+		var tmp_command = "/bin/grep /var/log/asterisk/messages -e '" + $('log_month').value + "  " + $('log_day').value + " ' > /var/lib/asterisk/static-http/config/bkps/today_log.html";
 	}else{
 		var tmp_command = "/bin/grep /var/log/asterisk/messages -e '" + $('log_month').value + " " + $('log_day').value + " ' > /var/lib/asterisk/static-http/config/bkps/today_log.html";
 	}

Modified: trunk/gui_configs/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/trunk/gui_configs/gui_sysinfo?view=diff&rev=210&r1=209&r2=210
==============================================================================
--- trunk/gui_configs/gui_sysinfo (original)
+++ trunk/gui_configs/gui_sysinfo Wed Jan  3 15:43:53 2007
@@ -26,5 +26,4 @@
 
 THISMONTH=`/bin/date +%b`
 THISDAY=`/bin/date +%d`
-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
+/bin/grep /var/log/asterisk/messages -e "$THISMONTH ${THISDAY\#0\ }" > /var/lib/asterisk/static-http/config/bkps/today_log.html



More information about the asterisk-gui-commits mailing list