[squeak-dev] Re: OSProcess on Mac?

Bernhard Pieber bernhard at pieber.com
Sun Dec 12 16:37:52 UTC 2010


Thanks for the answer, Sean. You are right, some OSProcess commands work. Does CommandShell work for you as well?

I did the following:
- I took the latest trunk image Squeak4.2-10548-alpha from ftp.squeak.org.
- I started it with Squeak 4.2.5beta1U.app.
- I updated it. The lastest update is #10768.
- I ran the following to install OSProcess and CommandShell.

Installer squeaksource
	project: 'OSProcess';
	install: 'OSProcess';
	project: 'CommandShell';
	install: 'CommandShell'.

This loads OSProcess-dtl.59 and CommandShell-dtl.49.

- I ran your example:
OSProcess command: 'open "http://google.com"'.

This works.

- I ran OSProcess allTestResults.

Here are the results:

bp running OSProcess unit tests 12 December 2010 5:23:33 pm
OSProcess platformName => Mac OS
OSProcess platformSubtype => intel
OSProcess osVersion => 1065
OSProcess vmVersion => Squeak4.1 of 17 April 2010 [latest update: #9957] Squeak VM 4.2.5b1
size of C int: OSProcess accessor sizeOfInt ==> 4
size of C pointer: OSProcess accessor sizeOfPointer ==> 4
OSProcess versionInformation asString => #('OSProcess version 4.4.0' 'CommandShell version 4.4.13' '(not installed in this image)')
all tests completed without problems
tests results have been saved in a file named 'OSProcessTestResults-Mac OS-32bitImage-32bitHw.txt'

It seems OK to me, except perhaps the "not installed in this image".

- Then I try to run the following:
(PipeableOSProcess command: 'ls -l') upToEndOfFile

This results in two debuggers with the error NonBooleanReceiver: proceed for truth in AttachableFileStream>>upToEndOfFile because atEndOfFile returns nil.

- I also tried the following:
CommandShell new command: 'ps -aef | edit'

I get the following dialog:
"AioPlugin not present, AioEventHandler will use polling input".

When I click OK, I get three debuggers with the NonBooleanReceiver error, two in BufferedAsyncFileReadStream>>moveAvailableDataFrom: (isAtEndOfFile: returns nil) and one in ShellBuiltin>>copyUntilDoneFrom:to: (atEndOfFile returns nil).

Does this work on Mac for anyone? On which VM? Any tips on what I can try next?

Cheers,
Bernhard

Am 12.12.2010 um 00:49 schrieb Sean P. DeNigris:
> bpi wrote:
>> Does OSProcess work with the latest trunk image on a Mac? If yes, what VM
>> do I need?
> I've been using that version of OSProcess on 4.1 (4.2.5 VM) but never ran
> the tests.  When I did they blew up as well, but the basic functionality
> (e.g. "OSProcess command: 'open "http://google.com"'") is working in 4.1 and
> trunk 10762.




More information about the Squeak-dev mailing list