2021年1月2日星期六

problems with shell_exec, does not work properly with some bash commands

I have the following script

$variable1="echo -e \'Hi\n how are you\'";  $variable2=shell_exec("$variable1");  echo "$variable2";  
And theorically should show 'Hi' and in another line 'how are you', but instead it shows this: -e 'Hi Thanks https://stackoverflow.com/questions/65544886/problems-with-shell-exec-does-not-work-properly-with-some-bash-commands January 03, 2021 at 06:44AM

没有评论:

发表评论