We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2030979 commit bcdf0b0Copy full SHA for bcdf0b0
src/RemoteTask/Task.php
@@ -72,7 +72,7 @@ public function run()
72
);
73
}
74
$status = (bool) $this->command(
75
- "bash -c '(echo @{:command} | base64 -d | bash) > @{:logFile} 2>&1 & disown && echo 1 || echo 0'",
+ "nohup bash -c '(echo @{:command} | base64 -d | bash) > @{:logFile} 2>&1 & disown' 2>/dev/null 1>/dev/null && echo 1 || echo 0",
76
[
77
'command' => base64_encode($command),
78
'logFile' => $this->logFile
0 commit comments