[squeak-dev] Re: calling a external executable

Ricardo Moran richi.moran at gmail.com
Wed Jan 12 00:43:20 UTC 2011


The problem is not the ProcessWrapper package but the Scratch image. Keep in
mind Scratch is built on an old Squeak 2.8 image.
Since Scratch doesn't have SUnit, I didn't even bother installing the Tests
package. I just hacked my way until the source.st got installed, then I
tried the project description example (which, I think, is exactly what Arunabh
needs) and since it worked, I simply made a change set with all the changes.

Cheers
Richo

On Tue, Jan 11, 2011 at 7:49 PM, Levente Uzonyi <leves at elte.hu> wrote:

> 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
>>>
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20110111/09749ce4/attachment.htm


More information about the Squeak-dev mailing list