forked from xin/TowerOptoSifAndSpectral
机载第一版
This commit is contained in:
@ -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>';
|
||||
}
|
||||
Reference in New Issue
Block a user