日期:2014-05-17 浏览次数:20437 次
exec('/usr/bin/unoconv --server localhost --port 8100 -o /usr/local/webserver/www/server/Exam/Public/Uploads/Resource/transform/document/201309/52419a788a553.pdf -f pdf /usr/local/webserver/www/server/Exam/Public/Uploads/Resource/untransform/document/201309/52419a788a553.doc');
#!/bin/sh
turnCode() {
local pdf=`echo $1 | cut -d: -f1`;
local file=`echo $1 | cut -d: -f2`;
echo $pdf;
echo $file;
`/usr/bin/unoconv --server localhost --port 8100 -o $pdf -f pdf $file`
}
action="$1"
setting="$2"
case $action in
turnCode)
turnCode "$setting"
;;
*)
;;
esac
exec("sudo ./bash turnCode $save_path1:$file_path1", $out, $status);