I've  solved!
The correct way is the full path.

Not "R CMD...."

But "/usr/bla/bla/R CMD ..."

Thank you

Marcello Verona


>We need to know what kind of error message you are getting before we can
>be
>much help.
>
>-Greg
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] Behalf Of Marcello Verona
>> Sent: Tuesday, April 13, 2004 12:37 PM
>> To: [EMAIL PROTECTED]
>> Subject: [R] R apache and PHP
>> 
>> 
>> I've developed a web application in PHP and R
>> 
>> my script is
>> 
>> 
>> <?php
>> 
>> ...
>> exec("R CMD BATCH --silent /home/marcello/R_in/myfile.bat  
>> /home/marcello/R_out/myfile.out");
>> 
>> ...
>> 
>> ?>
>> 
>> This script execute in R batch mode and write the myfile.out.
>> 
>> On Win2000 the similar script is ok, but on linux I've a problem.
>> 
>> I suppose is a permession problem because the same script on 
>> shell run fine
>> and on Zend debugger (my IDE for php) is also ok.
>> In this case the owner is "marcello" , if I run the script by browser

>> the owner is "apache".
>> 
>> I've  overwritted all the ownerships of R directory and bin to apache

>> user but not work.
>> 
>> If a run
>> exec("ls > mydir.txt"); is ok (is not a PHP general problem!)
>> 
>> Someone can help me?
>> 
>> Thanks
>> (and excuse my for my poor english)
>> 
>> Marcello Verona
>> 
>> ______________________________________________
>> [EMAIL PROTECTED] mailing list
>> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! 
>> http://www.R-project.org/posting-guide.html
>> 
>
>
>LEGAL NOTICE
>Unless expressly stated otherwise, this message is confidential and may
be
>privileged. It is intended for the addressee(s) only. Access to this E-mail
>by anyone else is unauthorized. If you are not an addressee, any disclosure
>or copying of the contents of this E-mail or any action taken (or not taken)
>in reliance on it is unauthorized and may be unlawful. If you are not an
>addressee, please inform the sender immediately.


__________________________________________________________________
Social price: l'ADSL diventa per tutti
Tiscali ADSL Senza Canone 640Kbps: GRATIS fino al 15 aprile costo
di adesione, attivazione e il modem per tutto il 2004. E per i primi 3 mesi,
con il Tiscali social price, navighi a 1,5 euro l'ora! Affrettati!
http://point.tiscali.it/adsl/prodotti/640Kbps/

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to