Skip to content

Commit

Permalink
Avoid process list trancation when checking running commands - closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Sep 20, 2024
1 parent a19bfd4 commit a96b31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/SystemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function status(Request $request)
$running_commands = 0;

try {
$processes = preg_split("/[\r\n]/", \Helper::shellExec("ps aux | grep '{$command_identifier}'"));
$processes = preg_split("/[\r\n]/", \Helper::shellExec("ps auxww | grep '{$command_identifier}'"));
$pids = [];
foreach ($processes as $process) {
$process = trim($process);
Expand Down

0 comments on commit a96b31f

Please sign in to comment.