forked from xin/TowerOptoSifAndSpectral
机载第一版
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
<td style="width:33%">开始时间
|
||||
<input type="time" id="BeginTime" name="BeginTime" class="TextInput"></td>
|
||||
<td style="width:33%">时间间隔
|
||||
<input type="number" id="IntervalTime" name="IntervalTime" class="TextInput"></td>
|
||||
<input type="time" id="IntervalTime" name="IntervalTime" class="TextInput"></td>
|
||||
<td style="width:33%">停止时间
|
||||
<input type="time" id="EndTime" class="TextInput" name="EndTime"></td>
|
||||
</tr>
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td width="100px">程序运行状态</td>
|
||||
<td width="50px" id="statid"></td>
|
||||
<td width="200px" id="statid"></td>
|
||||
<td ></td>
|
||||
<td><input type="button" value="重启" onclick="rebootclicked()"></td>
|
||||
</tr>
|
||||
@ -37,7 +37,7 @@
|
||||
<td style="width:33%">开始时间
|
||||
<input type="time" id="BeginTime" name="BeginTime" class="TextInput"></td>
|
||||
<td style="width:33%">时间间隔
|
||||
<input type="number" id="IntervalTime" name="IntervalTime" class="TextInput"></td>
|
||||
<input type="time" id="IntervalTime" name="IntervalTime" class="TextInput"></td>
|
||||
<td style="width:33%">停止时间
|
||||
<input type="time" id="EndTime" class="TextInput" name="EndTime"></td>
|
||||
</tr>
|
||||
|
||||
@ -1,10 +1,16 @@
|
||||
<?php
|
||||
|
||||
exec("ps -ef | grep TowerOptoSifAndSpectral | grep -v grep",$output,$return);
|
||||
exec("ps -ef | grep AirOptoSifAndSpectral | grep -v grep",$output,$return);
|
||||
exec("ps -ef | grep GPSLog | grep -v grep",$output1,$return1);
|
||||
//var_dump( $output);
|
||||
if ( count($output)>0)
|
||||
if ( count($output)>0&& count($output1)>0 )
|
||||
{
|
||||
echo '<div style="width: 40px;height: 20px;background: green"></div>';
|
||||
}else{
|
||||
echo '<div style="width: 40px;height: 20px;background: red"></div>';
|
||||
echo '<div style="width: 200px;height: 20px;background: green">READY</div>';
|
||||
}else if(count($output)==0&& count($output1)>0){
|
||||
echo '<div style="width: 200px;height: 20px;background: orange">SIF NOT WORK</div>';}
|
||||
else if(count($output)>0&& count($output1)==0){
|
||||
echo '<div style="width: 200px;height: 20px;background: yellow">GPS NOT WORK</div>';
|
||||
}
|
||||
else{
|
||||
echo '<div style="width: 200px;height: 20px;background: red">NO APPLOCATION WOKR</div>';
|
||||
}
|
||||
@ -1,8 +1,12 @@
|
||||
<?php
|
||||
ignore_user_abort(true);
|
||||
set_time_limit(0);
|
||||
echo system("sudo killall Mywathdog.sh");
|
||||
echo system("sudo killall TowerOptoSifAndSpectral");
|
||||
echo system("sudo ./reboot.sh &");
|
||||
echo system("sudo killall Mywathdog.sh");
|
||||
echo system("sudo killall Mywathdogtemp.sh");
|
||||
|
||||
echo system("sudo killall AirOptoSifAndSpectral");
|
||||
echo system("sudo killall GPSLog");
|
||||
|
||||
echo system("sudo sh ./reboot.sh &");
|
||||
echo "系统已重启";
|
||||
//var_dump($output);
|
||||
@ -1,3 +1,3 @@
|
||||
|
||||
sleep 10
|
||||
/root/Mywathdog.sh>>log.txt &
|
||||
|
||||
/root/Mywathdogtemp.sh &
|
||||
|
||||
Reference in New Issue
Block a user