startRunning(); //check if session exists $session = shell_exec("tmux list-session | grep $tmux_session"); if ($session === null) { (new ColorCLI())->info('Starting the tmux server and monitor script.'); passthru('php '.app()->/* @scrutinizer ignore-call */ path().'/../misc/update/tmux/run.php'); } } }