[squeak-dev] Console smalltalk program.
David T. Lewis
lewis at mail.msen.com
Fri Mar 19 01:53:55 UTC 2010
On Fri, Mar 19, 2010 at 01:27:45PM +1300, Michael van der Gulik wrote:
> On Fri, Mar 19, 2010 at 12:53 PM, Adrian Norberto Marino
> <adrianmarino at gmail.com> wrote:
> > Hello,
> > ? ? ? ?I need write a console program with smalltalk squeak.
> > ? ? ? ?Exist any tool for this task in squeak?
> What I think you want is a package called OSProcess. This is available
> from within Squeak: open the Package Universe browser and you'll find
> it under the "System" category. Then see OSProcess class>>helloWorld
> and other examples.
> Also check out the CommandShell package.
FYI, you can load the latest versions of OSProcess/CommandShell from
SqueakSource. It's generally best to use the latest version, as I
don't keep the universes postings up to date as much as I should do.
To run Squeak as a /bin/sh replacement, see class ExternalCommandShell
in the CommandShell package, which is described here:
More information about the Squeak-dev