Persistent LC server?
Peter W A Wood
peterwawood at gmail.com
Thu Aug 1 09:49:06 EDT 2013
Richard
On 1 Aug 2013, at 11:34, Richard Gaskin wrote:
> The trick here is that LC Server is designed to run as a CGI; that is, the process is born, lives, and dies in the time it takes to satisfy a request.
It is your choice whether to run LC Server as a CGI or not:
Schulz:LiveCodeServer peter$ cat > hr.lc
<?lc
put "Hello Richard. No CGI here"
?>
Schulz:LiveCodeServer peter$ ./livecode-server hr.lc
Hello Richard. No CGI here
You should be able to run the same code as you would run using the Desktop version save for the GUI. I guess the pitfall of this approach is that you can only handle one request at a time.
Hope this helps.
Peter
http://LiveCode1001.blogspot.com
More information about the use-livecode
mailing list