|
Smalltalk
Community
Versions
All Versions
Smalltalk Standard Extending Smalltalk Squeak Smalltalk GNU Smalltalk Little Smalltalk Java Smalltalk PDST MicroSeeker PIC/Smalltalk Sharp #Smalltalk Pocket Smalltalk Talks2 Smalltalk F-Script Squat Smalltalk Smalltalk/X StrongTalk Ambrai Smalltalk VisualWorks ObjectStudio VisualAge Smalltalk Dolphin Smalltalk Smalltalk MT S# Smallscript Smalltalk/JVM OOVM Embedded Gemstone/S LSW Vision-Smalltalk Slate Smalltalk Zoku Smalltalk VSE Smalltalk Smalltalk Express Smalltalk/V286 Smalltalk/VMac Smalltalk/V Smalltalk-80 |
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. |
May 16 2012 Costa Rica El Salvador Guatemala Honduras Panama Central America
lingoize.me
naturally with ease aiming for fluid fluency. |