diascope - 通过cron运行命令

时间:2016-01-21 13:56:46

标签: php cron centos sox

我试图在php脚本中运行diascope

[root@mvl vt-scripts]# cat test.php 
<?php

exec('/usr/bin/awk -f /root/virtual-tours-scripts/diascope/diascope -- -clean /center/datacenter/vt-scripts/169553_vtnb_script.txt > output.txt', $arr);
print_r($arr);

我收到以下错误:

tail: output.txt: file truncated

diascope 0.2.1d (ms 2006-2015) slideshow generator
See http://diascope.sf.net for documentation and updates.

Error: executable program not found: sox
Please see the requirements for diascope in the release notes.
Giving up

直接在终端中运行命令不会返回错误

Sox似乎安装好了

[root@mvl vt-scripts]# sox --version
sox:      SoX v14.4.2

我正在使用 CentOS 6.6版(最终版) PHP 5.3.3(cli)(建于2015年7月9日17:39:00)

任何想法?提前谢谢!

0 个答案:

没有答案