[squeak-dev] Console smalltalk program.
Adrian Norberto Marino
adrianmarino at gmail.com
Fri Mar 19 02:15:10 UTC 2010
Thanks for all!
First of all apologies for my low level of English.
I Found a way to execute smalltak code from a squeak image
from unix bash that was what he needed, Of the next form:
1. evaluate "ExternCommandShell start" from squeak image.
2. Close squeak image
3. run from unix shell(bash): squeak -headless myImage
4. This open a sqsh interpreter.
4. Now run by example: Array with: 'Helo'
it possible execute a squeak smalltalk expression of the next way?
bash$ squeak -headless myImage Array with: 'Helo'
my idea is execute a smalltalk espression directly desde bash.
Thanks.
El jue, 18-03-2010 a las 21:53 -0400, David T. Lewis escribió:
> 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:
> http://wiki.squeak.org/squeak/6023
>
> Dave
>
>
--
Adrian Norberto Marino <adrianmarino at gmail.com>
J2EE Developer.
Gentoo/Debian GNU/Linux User 380562.
...With free software you have freedom!...
More information about the Squeak-dev
mailing list
|