0
我想使用sudo從rtf文件生成我的txt文件,它在我使用Putty時起作用,但在使用PHP腳本時不起作用。如何在PHP上使用sudo passthru
這裏是我的代碼:
$fichier_final = str_replace("/cron/txt/","/cron/depot_erreurs", $fichier_final);
$cmd = sprintf('unoconv -f %s -o %s %s',
escapeshellarg($extension), escapeshellarg($fichier_final),
escapeshellarg($path.$fichier));
$resultat = NULL;
passthru($cmd, $resultat);
我unoconv嘗試過sudo的,但沒有奏效。 任何想法?由於
編輯:我file.rtf,我想改變的是在777
好的,謝謝你我會改變我的腳本和我的crontab –