I want to execute a grunt task in a php script with exec('grunt')
, but I always get 127
back. Any other bash command is fine.
I even made grunt.sh with
#!/bin/bash
grunt
and tried to execute with help exec('grunt.sh')
, but it will get it as well 127
.
Any thoughts on this?
source
to share