3
user/bin/inkscape -f sample.svg -e sample.png

Above command works when executes in shell, but with php shell_exec() its not executing.

Any help will appreciated.

Naitik
  • 1,455
  • 15
  • 26
  • 1
    Add `2>&1` for redirecting stderr to stdout to see if there where any errors. – Gumbo Apr 21 '14 at 10:17
  • $command = "/user/bin/inkscape -f sample.svg -e sample.png"; shell_exec($command); this is my code and how can I use 2>&1 ? – Naitik Apr 21 '14 at 10:22
  • 1
    This [question](http://stackoverflow.com/questions/1941755/getting-output-and-exit-status-from-shell-exec) might help you – Yogesh Apr 21 '14 at 11:45

0 Answers0