Add 2>&1
to the end of your command to redirect errors from stderr to stdout. This should make it clear what’s going wrong.
More Related Contents:
- How do you run a .bat file from PHP?
- Windows CMD.exe “The system cannot find the path specified.”
- PHP exec() vs system() vs passthru()
- php exec command (or similar) to not wait for result
- PHP shell_exec() vs exec()
- Running a Python script from PHP
- PHP StdErr after Exec()
- Run Bash Command from PHP
- Running command-line application from PHP as specific user
- PHP exec() as Background Process (Windows Wampserver Environment)
- Checking if process still running?
- PHP exec – check if enabled or disabled
- Run a ffmpeg process in the background
- Check if “exec” is disabled [duplicate]
- PHP exec $PATH variable missing elements
- Running python script in Laravel
- Can’t execute PHP script using PHP exec
- exec() with timeout
- PHP exec() not returning error message in output
- What’s the difference between escapeshellarg and escapeshellcmd?
- PHP: Why isn’t exec() returning output?
- php in background exec() function
- Converting a UNIX Timestamp to Formatted Date String
- A YAML file cannot contain tabs as indentation
- Best way to avoid code injection in PHP
- Disable browser cache in PHP or JavaScript in a Flash application
- remove duplicate from string in PHP
- How can I find unused functions in a PHP project
- Undefined index with PHP sessions
- How to take a photo and send to HTTP POST request with Android?