command = $cmd; } function execute(?int &$result = nullptr): string { $stdout = []; exec($this->command, $stdout, $result); return implode(PHP_EOL, $stdout); } function start(): string { system("nohup " . $this->command . " > /dev/null 2>/dev/null &"); return $this->command; } }; } }