-----Original Message-----
From: gretl-users-bounces(a)lists.wfu.edu [mailto:gretl-users-
bounces(a)lists.wfu.edu] On Behalf Of Allin Cottrell
Sent: Thursday, January 31, 2013 9:43 AM
To: Gretl list
Subject: Re: [Gretl-users] gretlcli & PHP
On Wed, 30 Jan 2013, Allin Cottrell wrote:
I've made a further change in CVS: just one environment variable is needed
to get things working right -- at least on a simple test that I have run.
Please
see the account I have put at
http://gretl.sourceforge.net/slave/ .
Allin Cottrell
[>]
I've installed the CVS version and setup an environment var in the Apache
config as needed, with the gretl config in /etc/gretl. I ensured gretl is
coming back as version 1.9.11cvs and the apache env var is set correctly,
the /etc/gretl dir is owned by apache.
After all of this, I no longer get the errors in the PHP error log but the
results file is still not being created. I'm writing to /tmp with full
permissions set so I know it's not a permission problem (both gretl and
apache can write to this directory). As before, when I run the exact same
command on the command line using any user account, the output file is
created successfully, however from within PHP and Apache, it is never
created.
Is there some way to get more information, debugging or otherwise, on what
gretl is doing when trying to create this output file? Or can I extract the
results some other way than in an output file perhaps? At this point I need
to start looking at alternative methods if the output file is not going to
work.
I reviewed the document explaining using gretl with PHP/Apache, but I don't
notice the use of an output file anywhere in there. Could you try something
that creates an output file to see if it works as intended for you?
I've included a basic sample command and data file below.
Command File:
# cat commandFile
open /tmp/dataFile.csv
ols pHours 0 period
outfile /tmp/resultsFile --append
genr cHours = (0)
genr bHours = (period)
outfile --close
exit
Data File:
# less dataFile.csv
pHours, period
4.4734735122401,0
7.8034735122401,1
4.0814735122401,2
3.8934735122401,3
4.5601401789071,4