[squeak-dev] How to ask Squeak to save the image from outside
damien.cassou at gmail.com
Wed Jun 10 07:37:31 UTC 2009
Thank you very much
On Tue, Jun 9, 2009 at 8:01 PM, Miguel Cobá<miguel.coba at gmail.com> wrote:
> Something like this:
> [ 60 seconds asDelay wait.
> (FileDirectory default fileOrDirectoryExists: '/var/squeak/save.squeak')
> ifTrue: [ SmalltalkImage current snapshot: true andQuit: false ]
> ] on: Error do: [ :error | error asDebugEmail ]
> ] repeat
> ] forkAt: Processor systemBackgroundPriority.
> Project uiProcess suspend.
> Based on a script from Ramon Leon.
> Miguel Cobá
> On Tue, Jun 9, 2009 at 12:56 PM, Miguel Cobá<miguel.coba at gmail.com> wrote:
>> fork a process that sleeps maybe 10 seconds and on wake up, checks for
>> a file named, for example,
>> SHUTDOWN.txt in a given folder. If found then snapshot the image and quit.
>> Then in the script create and remove the folder on demand.
>> Miguel Cobá
>> On Tue, Jun 9, 2009 at 12:40 PM, Damien Cassou<damien.cassou at gmail.com> wrote:
>>> I would like to be able to make Squeak save the image from a Windows
>>> .bat script. Is it possible to control the VM and the image once
>>> Thank you
>>> Damien Cassou
>>> "Lambdas are relegated to relative obscurity until Java makes them
>>> popular by not having them." James Iry
"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
More information about the Squeak-dev