startRunning(); //check if session exists $session = Process::run("tmux list-session | grep $tmux_session"); if ($session->exitCode() === 1) { $this->info('Starting the tmux server and monitor script'); Process::forever()->run('php '.app()->/* @scrutinizer ignore-call */ path().'/../misc/update/tmux/run.php'); } } }