【发布时间】:2014-04-22 12:03:54
【问题描述】:
一个.sh
#! bin/bash
command="cp 357.svg 000.svg"
echo "Executing Command";
exec $command;
通过执行sh one.sh 从shell 运行完美,甚至在php 中shell_exec("sh one.sh"); 也可以正常工作。
两个.sh
#! bin/bash
command="/usr/bin/inkscape -f 357.svg -e 357.png"
echo "Executing Command";
exec $command;
来自 shell sh two.sh 工作正常
但使用 php shell_exec("sh two.sh") 不执行
谁能告诉它为什么没有执行?
【问题讨论】:
标签: php linux bash shell-exec inkscape