Skip to content

Commit

Permalink
Fixed disown problems on pty
Browse files Browse the repository at this point in the history
  • Loading branch information
brnskn committed Sep 6, 2021
1 parent 2030979 commit bcdf0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RemoteTask/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function run()
);
}
$status = (bool) $this->command(
"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",
[
'command' => base64_encode($command),
'logFile' => $this->logFile
Expand Down

0 comments on commit bcdf0b0

Please sign in to comment.