Re: installing and running LC on 'headless' linux server

2021-02-01 Thread kee nethery via use-livecode
Mark, Thanks! Here’s the script I created based upon your example. This is a stack with one card and on the card is a field “counter”. I put “0” into the field to seed it. When the stack file is opened, it launches LiveCode and does the preOpenStack and the send in seconds causes the stack to d

Re: installing and running LC on 'headless' linux server

2021-02-01 Thread Mark Wieder via use-livecode
On 2/1/21 10:29 AM, kee nethery via use-livecode wrote: Basically I needed a stack to launch and run in the IDE and LiveCode didn’t have a way to do that. ??? on preOpenStack choose pointer tool startMeUp end preOpenStack on startMeUp answer "I'm started" end startMeUp -- Mark Wiede

Re: installing and running LC on 'headless' linux server

2021-02-01 Thread kee nethery via use-livecode
> On Feb 1, 2021, at 1:52 AM, Ben Rubinstein via use-livecode > wrote: > > Thanks Mark (and Matthias). That's very useful info which I'll stash for > another time. > > In this case I really don't want to use the LC code over HTTP. It is purely a > utility to run locally on this machine at s

Re: installing and running LC on 'headless' linux server

2021-02-01 Thread Ben Rubinstein via use-livecode
Superb, thank you Matthias. Apologies not having RTFM'd properly myself. Ben On 01/02/2021 12:07, matthias rebbe via use-livecode wrote: Am 01.02.2021 um 10:52 schrieb Ben Rubinstein via use-livecode mailto:use-livecode@lists.runrev.com>>: Thanks Mark (and Matthias). That's very useful info

Re: installing and running LC on 'headless' linux server

2021-02-01 Thread matthias rebbe via use-livecode
> Am 01.02.2021 um 10:52 schrieb Ben Rubinstein via use-livecode > mailto:use-livecode@lists.runrev.com>>: > > Thanks Mark (and Matthias). That's very useful info which I'll stash for > another time. > > In this case I really don't want to use the LC code over HTTP. It is purely a > utility

Re: installing and running LC on 'headless' linux server

2021-02-01 Thread Ben Rubinstein via use-livecode
Thanks Mark (and Matthias). That's very useful info which I'll stash for another time. In this case I really don't want to use the LC code over HTTP. It is purely a utility to run locally on this machine at scheduled intervals, in support of some other processes. For several reasons it would

Re: installing and running LC on 'headless' linux server

2021-01-31 Thread David Bovill via use-livecode
Mark that is interesting. I would like to something similar during the Learning Cohort coding sprint over the next 12 weeks. I’d be happy to write up documentation and create a community GitHub project around that approach including Nginx config etc?

Re: installing and running LC on 'headless' linux server

2021-01-31 Thread Mark Talluto via use-livecode
One more thought came to mind. You should run the executable in the background by applying an & as in this example: ./yourCoolExecutable -ui & If you run the executable from terminal and you do not apply the & the executable will die as terminal quits. Best regards, Mark Talluto livecloud.

Re: installing and running LC on 'headless' linux server

2021-01-30 Thread Mark Talluto via use-livecode
Hi Ben, My favorite method is to build server code with standalones and script only stacks. You can run them headless using the -ui method as you proposed earlier. You can have the standalone act as a starter stack that loads in your script only stacks as libraries. This model makes it easy to d

Re: installing and running LC on 'headless' linux server

2021-01-30 Thread matthias rebbe via use-livecode
Hi Ben, Livecode Server can only execute Livecode script files, but it can make use of stackfiles if you want to use the stack as a library for example. I am sorry, if i cannot explain it more detailed. Ask me in German and i could tell you what i really mean. ;) But good example is this page

Re: installing and running LC on 'headless' linux server

2021-01-30 Thread Ben Rubinstein via use-livecode
Hi Matthias, Thanks for answering. I haven't looked into Livecode Server. When you say I could run livecode scripts directly from shell, does that means scripts, but not stacks? Is Livecode Server easier to install on a 'headless' system? Is there somewhere I should look to find explanation

Re: installing and running LC on 'headless' linux server

2021-01-29 Thread matthias rebbe via use-livecode
Ben, is there a reason why you do not install/use Livecode Server instead of Livecode IDE on your system? You could run livecode scripts directly from shell. Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 29.01.2021 um 19:44 schrieb Ben Rubinstein via use-livecod

installing and running LC on 'headless' linux server

2021-01-29 Thread Ben Rubinstein via use-livecode
So I want to install LC on a headless - i.e. no GUI, access over SSH - Ubuntu 20. (Then I'll be using it to run a particular stack on a cron job.) I've done this a long time ago with a standalone - but in this case I'd rather be able to do it with a stack. The only thing that I know about is