Problem executing bash file

前端 未结 5 1512
醉话见心
醉话见心 2021-01-26 17:54

HI there!

I\'ve run into some problem while learning to combine .sh files and PHP. I\'ve create a file test.sh and in that file I call a PHP file called test.php.

<
5条回答
  •  说谎
    说谎 (楼主)
    2021-01-26 18:18

    Another option is to run it with sh (or bash, if sh on your machine isn't bash and the script uses bashims)

    sh filename.sh
    bash filename.sh
    

    This will work whether or not the file is executable or in $PATH

提交回复
热议问题