[squeak-dev] Using OSProcess

Casimiro de Almeida Barreto casimiro.barreto at gmail.com
Fri Nov 19 17:56:26 UTC 2010


Em 19-11-2010 15:39, Mike Hales escreveu:
> Thanks, that's just want I wanted. And thanks Sean for the tip on
> the http://forum.world.st/ index. That's pretty handy having all the
> lists together in one spot.
>
>
> Mike
>
> Mike Hales
> Engineering Manager
> KnowledgeScape
> www.kscape.com <http://www.kscape.com>
BTW, if you're running squeak over CogVM it wont work... there are
incompatibilities between OSProcess, CommandShell and OSProcessPlugin
and cog.

Interesting enough, if I do:

| str |

    str := (PipeableOSProcess command: 'ls -l') upToEnd.

It will return and empty ByteString but will fail to read output from
stdOut.

Forking PipeableOSProcess won't work when using cog.

like:

ps := PipeableOSProcess forkHeadlessSqueakAndDoThenQuit: [ ... ]

will fail crashing cog (memory fault). At least under linux.

Best regards,

CdAB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20101119/a1f9b6df/attachment.htm


More information about the Squeak-dev mailing list