最近常需要用php去呼叫shell script, 在command line 執行是沒問題的,但用shell_exec() ... echo shell_exec('sudo abc.sh 2>&1'); ... Tags: linux, php, shell_exec ...
確定! 回上一頁