diff --git a/MD_STD.php b/MD_STD.php index b9e1578..14451c3 100644 --- a/MD_STD.php +++ b/MD_STD.php @@ -441,7 +441,7 @@ final class MD_STD { */ public static function exec_edit(string $cmds):void { - $error = \shell_exec($cmds . ' 2>&1'); + $error = \shell_exec($cmds . ' 2>&1 1>/dev/null'); if (!empty($error)) { throw new \Exception('Shell error: ' . $error . PHP_EOL . PHP_EOL . 'Command was: ' . $cmds); }