LC Server & Server Based Stack?
harrison at all-auctions.com
Fri Jan 20 23:35:57 CET 2017
I was able to get your example to work fine,
so it proves that I’m touching the stack Ok,
but when I try to send a message to a
handler script in the stack it doesn’t execute
send “executeThis” to stack “teststack”
In the stack script of “teststack” the contents of
answer "This is the script in the teststack”
I looked at the stack..
..and the stack did nothing.
What am I not doing properly here?
> On Jan 20, 2017, at 2:26 PM, Mike Bonner via use-livecode <use-livecode at lists.runrev.com> wrote:
> What jacque was referring to is a different animal. An executable set up as
> a cgi, that (if I recall correctly has a startup script and that after
> script completion, exits)
> The lc server itself runs in cgi mode (as apposed to as a module I believe)
> and unless you're using the earliest version (you're not) can access and
> use stacks "out of the box."
> A very simple example:
> My lcserver script..
> start using stack "teststack.livecode"
> put "<pre>" & the script of stack "teststack" & "</pre>"
> Starts using a very very simple stack.
> Shows the script of that stack.
> executes the command "randomize" that is in the stack.
> You can see it work here: http://guidezone.info/stackuse.lc
> You can of course also "go" to a stack.
More information about the use-livecode