Skip to content

Commit

Permalink
fix unpredicted uucp package on uuls
Browse files Browse the repository at this point in the history
  • Loading branch information
chgp committed Mar 16, 2022
1 parent f459659 commit e4a06a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/SystemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ public function getSysStations(){
* @return Json
*/
public function sysGetSpoolList(){
$command = "uustat -a| grep -v uuadm | grep -v sudo | grep -v bash" ;
$command = 'uustat -a| grep -v uuadm | grep -v sudo | grep -v bash | grep -v "\-C"' ;
$output=exec_cli($command) ;
$output = explode("\n", $output);
$spool=[];

for ($i = "0" ; $i < count($output); $i++) {
if(!empty($output[$i])) {
$fields = explode(" ", $output[$i]);
if ( $fields[6] != "uuadmin"){
if ( $fields[6] != "uuadm"){
$count=count($fields);
$emails=array();
$size= 0;
Expand Down

0 comments on commit e4a06a9

Please sign in to comment.