LiveCode equivalent to 'cron' for automated background functions?

Keith Clarke keith.clarke at me.com
Wed Nov 28 12:43:23 EST 2018


Thanks Mike, I was aware of ‘do’ but hadn’t used ’send’, so not seen its timer aspect.

The examples in the dictionary look potentially useful for a couple of lightweight activities I’d like to have ticking-over in the background on my LC Server, pending page visits.  
Best,
Keith 

> On 28 Nov 2018, at 17:30, Mike Kerner via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> In the meantime, there are two commands to have a look at if you want to
> have a crack at rolling your own
> send and do
> send "doSomething" to me in 60 seconds
> then there is a way to see if you're interrupting an asynchronous activity
> pendingMessages
> 
> On Wed, Nov 28, 2018 at 12:02 PM Mike Kerner <MikeKerner at roadrunner.com>
> wrote:
> 
>> LC is single-threaded so CRON is a little tricky.  I have code that works
>> with those limitations.  I suppose I should repo it.  Some day I might even
>> get the secondary process part working.
>> 
>> On Wed, Nov 28, 2018 at 11:15 AM Keith Clarke via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>> 
>>> Folks,
>>> Please can anyone steer me towards the dictionary keyword equivalent to
>>> ‘cron' jobs for initiating time-based background functions, along the lines
>>> of…
>>> 
>>> on TimeAt pHour pMinute pSecond
>>>        do stuff
>>> end TimeAt
>>> 
>>> Thanks
>>> Keith
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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
>> 
>> 
>> 
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>   and did a little diving.
>> And God said, "This is good."
>> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> _______________________________________________
> 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





More information about the use-livecode mailing list