[squeak-dev] Re: calling a external executable

Levente Uzonyi leves at elte.hu
Tue Jan 11 22:49:49 UTC 2011


On Tue, 11 Jan 2011, Ricardo Moran wrote:

> Hi,
>
> Scratch does come with an older vm but it works with a more recent one. I
> have it working with 'Squeak3.10.2 of ''5 June 2008'' [latest update:
> #7179]'.
>
> I'm attaching a change set I just did which installs ProcessWrapper in a
> scratch image. Please note that I only tested it with the example I found on
> the squeaksource project description, and even though it works I don't know
> if something else might be broken... at least it installs correctly :)

There are tests in the ProcessWrapper-Tests package. All of them should 
pass (except for ProcessWrapperUnixUtilsTests if you don't have cat.exe 
and touch.exe, see the class comment for details).

>
> Oh, ProcessWrapper>>#downloadPlugin doesn't work. You will need to download
> the plugin manually from: "

What's the problem with #downloadPlugin?


Levente

> http://people.inf.elte.hu/uzonyile/ProcessWrapper/2/ProcessWrapperPlugin.dll"
> and place it on your vm directory.
>
> I hope it helps.
> Richo
>
> On Tue, Jan 11, 2011 at 10:04 AM, David T. Lewis <lewis at mail.msen.com>wrote:
>
>> On Tue, Jan 11, 2011 at 04:48:06AM -0800, arunabh2k wrote:
>>>
>>> Thanks Dave, I tried looking out for OSProcess and CommandShell.
>>> I would like to tell the precise requirement which I am trying to do, I
>> am
>>> developing this for windows and using scratch.
>>> I have to call an external executable once the scratch programming is
>> over.
>>> As scratch is developed using squeak I thought to ask the question over
>> here
>>> too.
>>> I tried installing commandShell in scratch source opened in squeak.exe
>> but
>>> didn't got any option to do so.
>>>
>>> Is this the right approach I am following ?
>>
>> Hi Arunabh,
>>
>> I am not too familiar with Scratch, but I think that it is distributed
>> with a different version of the Squeak VM that probably does not have
>> the OSProcessPlugin that would be required. Also, you will need to
>> use ProcessWrapper on Windows.
>>
>> So no, I do not think this approach will work for Scratch on Windows.
>>
>> Sorry,
>> Dave
>>
>>
>>
>



More information about the Squeak-dev mailing list