[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-gui-commits
Subject:    jlyons: trunk r210 - in /trunk: config/sysinfo.html
From:       asterisk-gui-commits () lists ! digium ! com (asterisk-gui-commits () lists ! digium ! com)
Date:       2007-01-03 14:43:44
Message-ID: 20070103214354.2F537A94908 () lists ! digium ! internal
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic