How to schedule a task
Bert Freudenberg
bert at impara.de
Thu Mar 16 10:26:06 UTC 2006
However, those scripting extensions do not work in plain Squeak, but
only in Tweak or Croquet. Also, for a 3 hour delay you might want to
use a Delay ("self wait: 3*60*60") instead of checking in every tick.
Or maybe even annotating your method as "<ticking: 0.0001>".
- Bert -
Am 16.03.2006 um 09:07 schrieb Frank Urbach:
> Hi Cédrick,
>
> I haven't the whole solution but Bert gave me an advise for such
> things. Define a method within your class with the task you need
> with an endless loop. In this loop you wait for the next tick (self
> waitTick). In this loop you define the loading of the XML file.
> Start this method as a script e.g. in the step of initializing.
>
> self startScript: #loadXML
>
> Hope this helps
>
> Cheers,
> Frank
>
> -------- Original Message --------
> Subject: How to schedule a task (15-Mrz-2006 19:35)
> From: Cédrick Béler <cbeler at enit.fr>
> To: frank.urbach at schmees.com
>
>> Hi :)
>>
>> I need to get an XML file every three hours from an external website.
>> For now, I use a wget with a scheduled task... but I was wandering
>> how I
>> could do that in squeak.
>> I found Scheduler in squeakmap... would you use that
>> (performance...) ?
>> is it better to use wget in case the image crash ?
>>
>> if you have any comments or idea...
>>
>> Thank you
>>
>> Cédrick
>>
>
More information about the Squeak-dev
mailing list
|