CommandShell works with Pharo 9.10.10. You will encounter several errors when trying to download the package due to the fact that Pharo does not have MVC, but you can just go past the first group and abandon the last (which is trying to actually open CommandShell in Morphic). At this point, you will have a class called PipeableOSProcessthat can be very easily used to capture output. For example:
(PipeableOSProcess command: 'ls /bin') output
will return the contents of your bin directory as a string.
source
share