From: Mark W. <ri...@us...> - 2003-09-28 16:44:41
|
Update of /cvsroot/ipcop/ipcop/html/cgi-bin In directory sc8-pr-cvs1:/tmp/cvs-serv13127/html/cgi-bin Modified Files: Tag: IPCOP_v1 time.cgi Log Message: Fix system commands Index: time.cgi =================================================================== RCS file: /cvsroot/ipcop/ipcop/html/cgi-bin/Attic/time.cgi,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -C2 -d -r1.1.2.16 -r1.1.2.17 *** time.cgi 20 Sep 2003 16:38:05 -0000 1.1.2.16 --- time.cgi 28 Sep 2003 16:44:09 -0000 1.1.2.17 *************** *** 69,73 **** my $datestring = "$timesettings{'SETYEAR'}-$timesettings{'SETMONTH'}-$timesettings{'SETDAY'} $timesettings{'SETHOUR'}:$timesettings{'SETMINUTES'}"; # EAO setdate.c also revised for ISO 6801 date format 2003-08-11 ! system "/usr/local/bin/setdate $datestring"; &log("$tr{'time date manually reset'} $datestring"); } --- 69,73 ---- my $datestring = "$timesettings{'SETYEAR'}-$timesettings{'SETMONTH'}-$timesettings{'SETDAY'} $timesettings{'SETHOUR'}:$timesettings{'SETMINUTES'}"; # EAO setdate.c also revised for ISO 6801 date format 2003-08-11 ! system ('/usr/local/bin/setdate', $datestring); &log("$tr{'time date manually reset'} $datestring"); } *************** *** 260,264 **** { print "$tr{'clock last synchronized at'}\n"; ! system("cat ${swroot}/time/lastset"); } else --- 260,265 ---- { print "$tr{'clock last synchronized at'}\n"; ! my $output = `cat ${swroot}/time/lastset`; ! print $output; } else |