Quantcast
Channel: Call and run php script from shell script - Ask Ubuntu
Browsing all 4 articles
Browse latest View live

Answer by terdon for Call and run php script from shell script

The problem here is that you are quoting the entiore command you are trying to run as a single variable. As a result, you're not running php with foo.php as an argument but instead are attempting to...

View Article



Answer by Benny for Call and run php script from shell script

The problem in your code is the line: . "${CONFIG}${i}/test.php" Remove the . Here is another example: $ ls -l -rwxrwxr-x 1 bg bg 67 Oct 20 09:42 index.php -rwxrwxr-x 1 bg bg 68 Oct 20 09:43 test.sh...

View Article

Answer by pa4080 for Call and run php script from shell script

Usually the command php is used for interpretation of PHP scripts in the shell. $ php /path/script-name.php I made simple test.sh and it works: $ cat ./text.sh #!/bin/bash sudo php...

View Article

Call and run php script from shell script

I'm trying something simple yet can't figured it out. Trying to run one shell script which call php script from the site directory. My shell script is simple test.sh: #!/bin/sh...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images