[Seaside] Stop squeak running in background II

Giovanni Giorgi jj at objectsroot.com
Tue Sep 28 15:12:08 CEST 2004


I have done a small hack using Seaside.
Do you know it a bit?
I have builded a seside app with a special session which can react so 
some url like
    http://localhost/seaside/app?cmd=save
and save the image.
    It is totally insecure :(

I can pack a small example session and post it also on the seaside 
mailing list.
Avi, there is a repository of WAComponent?
Cheers

Laurent Cocea ha scritto  in data 24/09/2004 16.57:

>Thanks Giovanni. Is your code available and can you provide an actual
>example of how to invoke the action by curl or wget? I could use it as
>a workaround until the solution you proposed is discussed and
>hopefully implemented; I assume other squeak users might be
>interested, too.
>
>--Laurent
>
>
>On Fri, 24 Sep 2004 14:08:27 +0200, Giovanni Giorgi <jj at objectsroot.com> wrote:
>  
>
>>Laurent Cocea ha scritto  in data 23/09/2004 20.00:
>>
>>    
>>
>>>[...]
>>>
>>> squeak -nosound -nodisplay &
>>>
>>>What is the best way to stop squeak in this case? I can use `killall
>>>squeak', or just open the System Monitor and end or kill the process.
>>>But could this approach result in data loss or corruption? Is there a
>>>"preferred" way to stop squeak when running w/o a GUI?
>>>
>>>
>>>      
>>>
>>Hem....yes the preferred way is to execute something like
>>    Smalltalk snapshot: true andQuit: true.
>>Some year ago I have done a special PWS Wiki action that can do this
>>thing when invoked by curl or wget.
>>This is not so much secure because someone can "guess" the url and shut
>>down your service.
>>
>>    The best way should be to trigger a special process when a unix
>>signal is received, but we should change the JVM to do that.
>>Some ideas?
>>    
>>
>
>  
>


-- 
.............................................................
 Giovanni Giorgi               ObjectWay SpA - Milano
 http://www.objectway.it    via Boltraffio, 7 - 20156 Milano
.............................................................



More information about the Seaside mailing list