[ | smalltalk dot org ].
Community and industry meet inventing the future.
Smalltalk Shell Scripting
written by Tomas Vanak, Providing A European Smalltalk Perspective
Version 1, Sat, 20040103
Version 2, Sat, 20040819, Edited by PWL for new content system.

I'm working on Smalltalk shell scripting. The first version is downloadable here stsh.tgz.

Installation: Untar, then copy stsh to /usr/local/bin/, copy the libraries to /usr/local/lib.

Then modify the test script hello.st - first line should point to /usr/local/bin/stsh.

Run ./hello.st.

The code itself is very short: Smalltalk commandLineArguments first asFilename fileIn.

There is only the near-to-minimum subset of classes (libbasic + libbasic2).

The first application I tried is a simple cgi application printenv. The source code is:

#!/usr/local/bin/stsh

'Content-type: text/plain

' print.
'Smalltalk Script test' printCR.
#('PATH') do: [:aName |
 (aName , ': ', (OperatingSystem getEnvironment:aName)) printCR].

'.' printCR.

You can see the result at http://www.vanak.cz/cgi-bin/printenv


Comment by Peter Lount
Excellent idea Tomas. Cool thing that your working on, Smalltalk Shell Scripting. Is it possible with other Smalltalk's, like Squeak? How does it work? What kinda of new classes are needed to make the shell scripting easy?
Copyright 1999-2010 by Smalltalk.org™, All Rights Reserved.
Wednesday
May 16 2012
Travel Adventure

Costa Rica

El Salvador

Guatemala

Honduras

Panama

Enjoy a tropical vacation in the sun, surf, in the jungle for adventure, yoga and massage for relaxation or learn the culture, history and langauge. Visit, live, work, play, retire. Enjoy.

Central America
Interoperate.org, the place to find out how to interoperate.
Google
Web
Smalltalk.org

64bits.net AMD64, Intel Pentium EM64T, Intel Itanium
Meet other Smalltalk people, contribute, learn, earn.
lingoize.me
On speaking languages
naturally with ease
aiming for fluid fluency.