I've found that if you run a LiveCode script with a shebang line as a cgi
script, the LiveCode Server process does not terminate (even with a quit
command).
I ran this simple script:
#!/livecode-server
set the outputLineEndings to "lf"
put "Content-type: text/html" & cr
Hi Monte
Many thanks. I updated to LiveCode Server 6.6.1 and then Shebang line is no
longer printed. It also seems the the enclosing are no longer
required.
The script successfully runs at the command line.
I still have a bit more investigation to in getting in to run as a CGI.
Cheers
Peter
On 07/15/2014 08:46 PM, Monte Goulding wrote:
Hi Peter
One of the contributions I made just prior to christmas was to handle the shebang
and basically put the script into
We are pleased to announce the release of LiveCode 6.6.
Release Contents
...
* '#!' now recognised by server
Hi Peter
One of the contributions I made just prior to christmas was to handle the
shebang and basically put the script into wrote:
> Somebody asked a question on the mailing list related to running LiveCode CGI
> scripts using LiveCode Server - Livecode CGIs co-existing with old-school Rev
>
Somebody asked a question on the mailing list related to running LiveCode CGI
scripts using LiveCode Server - Livecode CGIs co-existing with old-school Rev
2.x CGIs (Basically, he's trying to avoid changing the Apache configuration
file).
I don't see any reason that you can't use LiveCode Serve