机载第一版

This commit is contained in:
xin
2025-11-19 15:11:44 +08:00
parent 612bf24b15
commit e8db9aa9fe
32 changed files with 766 additions and 75 deletions

View File

@ -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>';
}

View File

@ -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);

View File

@ -1,3 +1,3 @@
sleep 10
/root/Mywathdog.sh>>log.txt &
/root/Mywathdogtemp.sh &