Files
AireOptoSifAndSpectral/html/php/GetSata.php

16 lines
674 B
PHP
Raw Normal View History

2021-12-23 14:09:37 +08:00
<?php
2021-12-23 14:43:26 +08:00
2025-11-19 15:11:44 +08:00
exec("ps -ef | grep AirOptoSifAndSpectral | grep -v grep",$output,$return);
exec("ps -ef | grep GPSLog | grep -v grep",$output1,$return1);
2021-12-23 14:43:26 +08:00
//var_dump( $output);
2025-11-19 15:11:44 +08:00
if ( count($output)>0&& count($output1)>0 )
2021-12-23 14:43:26 +08:00
{
2025-11-19 15:11:44 +08:00
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>';
2021-12-23 14:43:26 +08:00
}