From 1dabd108837a3a1dcae106b16a41385f10b262c0 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 13 Feb 2020 15:37:56 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 22fbe10..91124a9 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -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