Does that image have Seaside? If so, you can have a particular URL does that the save. So, then, from .bat you can do something like wget to that URL<br><br>cheers,<br><br>mariano<br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 6:37 AM, Damien Cassou <span dir="ltr"><<a href="mailto:damien.cassou@gmail.com">damien.cassou@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thank you very much<br>
<div><div></div><div class="h5"><br>
On Tue, Jun 9, 2009 at 8:01 PM, Miguel Cobá<<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.com</a>> wrote:<br>
> Something like this:<br>
><br>
> [<br>
> [<br>
> [ 60 seconds asDelay wait.<br>
> (FileDirectory default fileOrDirectoryExists: '/var/squeak/save.squeak')<br>
> ifTrue: [ SmalltalkImage current snapshot: true andQuit: false ]<br>
> ] on: Error do: [ :error | error asDebugEmail ]<br>
> ] repeat<br>
> ] forkAt: Processor systemBackgroundPriority.<br>
> Project uiProcess suspend.<br>
><br>
> Based on a script from Ramon Leon.<br>
><br>
> Miguel Cobá<br>
><br>
><br>
> On Tue, Jun 9, 2009 at 12:56 PM, Miguel Cobá<<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.com</a>> wrote:<br>
>> fork a process that sleeps maybe 10 seconds and on wake up, checks for<br>
>> a file named, for example,<br>
>> SHUTDOWN.txt in a given folder. If found then snapshot the image and quit.<br>
>><br>
>> Then in the script create and remove the folder on demand.<br>
>><br>
>> Miguel Cobá<br>
>><br>
>> On Tue, Jun 9, 2009 at 12:40 PM, Damien Cassou<<a href="mailto:damien.cassou@gmail.com">damien.cassou@gmail.com</a>> wrote:<br>
>>> Hi,<br>
>>><br>
>>> I would like to be able to make Squeak save the image from a Windows<br>
>>> .bat script. Is it possible to control the VM and the image once<br>
>>> launched?<br>
>>><br>
>>> Thank you<br>
>>><br>
>>> --<br>
>>> Damien Cassou<br>
>>> <a href="http://damiencassou.seasidehosting.st" target="_blank">http://damiencassou.seasidehosting.st</a><br>
>>><br>
>>> "Lambdas are relegated to relative obscurity until Java makes them<br>
>>> popular by not having them." James Iry<br>
>>><br>
>>><br>
>><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Damien Cassou<br>
<a href="http://damiencassou.seasidehosting.st" target="_blank">http://damiencassou.seasidehosting.st</a><br>
<br>
"Lambdas are relegated to relative obscurity until Java makes them<br>
popular by not having them." James Iry<br>
<br>
</div></div></blockquote></div><br>