Can't retrieve a text file from a remote CGI folder

Pierre Sahores sc at sahores-conseil.com
Wed Apr 10 20:05:47 EDT 2013


Double mistake : my cgi-bin dir needs 755

Le 11 avr. 2013 à 01:57, Pierre Sahores a écrit :

> Jacque,
> 
> Seems that the best is always to have the cgi-bin dir set to 555 instead of 755 if possible. Works for me in 555 instead of what i wrote by error in my first report.
> 
> Le 11 avr. 2013 à 01:48, Dave Cragg a écrit :
> 
>> On 11 Apr 2013, at 00:17, J. Landman Gay <jacque at hyperactivesw.com> wrote:
>> 
>>> Wrapping up my recent move to a different 32-bit server, there's one issue left. Linux gurus, can you help?
>>> 
>>> CGI text-based scripts are now working correctly except for an issue I can't identify. When writing to a log file, a server 500 error occurs immediately after the write. Here's a test script:
>>> 
>>> #!rev -ui
>>> 
>>> on startup
>>> open file "log.txt" for append
>>> write "this is a test" & cr to file "log.txt"
>>> close file "log.txt"
>>> put "Content-Type: text/plain" & cr
>>> put "done writing"
>>> end startup
>>> 
>>> When called from a browser, the entry is written to the log file and a 500 error is reported. "done writing" never appears.
>> 
>> 
>> Does it make a difference if you put another cr after the header? 
>> 
>> on startup
>> open file "log.txt" for append
>> write "this is a test" & cr to file "log.txt"
>> close file "log.txt"
>> put "Content-Type: text/plain" & cr
>> put cr
>> put "done writing"
>> end startup
>> 
>> Dave
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> --
> Pierre Sahores
> mobile : 06 03 95 77 70
> www.sahores-conseil.com
> 

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com





More information about the use-livecode mailing list