[squeak-dev] Re: OSProcess on Mac?

Ken G. Brown kbrown at mac.com
Sun Dec 12 19:32:51 UTC 2010


Seems to work better on Cog.app 4.0.0 at least, from http://www.mirandabanda.org/files/Cog/VM/VM.r2316/ on MacOS X 10.6.5
OSProcess accessor osppModuleVersionString. gives '4.3.2'
 
Ken G. Brown

At 5:37 PM +0100 12/12/10, Bernhard Pieber apparently wrote:
>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