[squeak-dev] Terminate a process in a Win32Shell

Arushi Aggarwal arushi987 at gmail.com
Thu Apr 15 15:26:07 UTC 2010


On Wed, Apr 14, 2010 at 8:28 PM, Chris Muller <asqueaker at gmail.com> wrote:
> Hi Arushi,
>
>> r = t fork.
>
> Even if you corrected this assignment, you would only have a Smalltalk
> "Process" object, which only terminates processes running in or above
> the interpreter; they have nothing to do with OS processes.
>
> To control OS processes, check out OSProcess

I am working on windows, and using OSProcess/Squeak Shell I was not
able to get it to execute an executable. Any pointers for that?
>
> As an alternative, you may wish to exit the other image gracefully.
>
That of course works, we were hoping we could force it to quit in case
of it getting hung.

Thanks.
>  - Chris
>
>
>
> On Tue, Apr 13, 2010 at 9:16 PM, Arushi Aggarwal <arushi987 at gmail.com> wrote:
>> Hi all,
>>
>> I have one squeak image bring up another squeak image to run a script.
>> I have the following code in my workspace.
>>
>> shell1 := Win32Shell new.
>> t := [s := shell1 shellExecute:f lpOperation:'open'
>> lpFile:'Squeak.exe' lpParameters:'Squeak3.10.2-7179-basic.image
>> project-files/testNone.sh none' lpDirectory:'' nShowCmd:1.] .
>>
>> r = t fork.
>>
>> I wish to be able to kill the squeak.exe process being run from the shell.
>>
>> r terminate does not seem to do that.
>>
>> Any pointers to what I should use.
>>
>> Thanks in advance.
>>
>> Arushi
>>
>>
>
>



More information about the Squeak-dev mailing list