Programmatically save image, and also do it periodically

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Wed Jan 9 11:40:39 UTC 2008




El 1/9/08 7:32 AM, "John Thornborrow" <john at pinesoft.co.uk> escribió:

> We have a squeaksource image running, and if the image crashes we lose
> any new projects and/or users registered since the last save. Thus a
> periodic, automatic/programmatic save would be ideal.
> 
> Regards,
> John

I put Scheduler of John Pierce in FunSqueak.
All you need is do this in a Workspace
| scheduler |
scheduler := TaskScheduler new.

scheduler start.
scheduler
do: [{SmalltalkImage current snapshot: true andQuit: false]
 every: 60 minutes.

Off course, Scheduler also works in several Squeak images

Edgar





More information about the Squeak-dev mailing list