Update webpagetool.php

This commit is contained in:
Namhyeon Go 2020-02-13 15:37:56 +09:00 committed by GitHub
parent 03aaa13aca
commit 1dabd10883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ if(!is_fn("get_web_cmd")) {
// do async(background)
if(in_array("async", $methods)) {
$cmd = sprintf("(%s &) & echo $!", $cmd);
$cmd = sprintf("bash -c '%s 1>/dev/null 2>&1 & echo $!'", $cmd);
}
// run command