[squeak-dev] Running Squeak fro ma unix shell script file with #! squeak...
lists at fniephaus.com
Sun May 5 14:38:57 UTC 2019
On Sun, May 5, 2019 at 6:11 AM tim Rowledge <tim at rowledge.org> wrote:
> I'm sure I remember someone making this work but can't spot any info right
> One should be able to make it so that a .st file could be made executable,
> start it with something akin to
> #! squeak my.image
I think that could work if `squeak` is in your path.
Otherwise, `#!/path/to/vm/squeak /path/to/my.image` should work, right?
> and continue with
> | t f |
> t:= [f := 4784969 fastDoublingFib asString] timeToRun.
> FileStream stdout
> nextPutAll: 'fib(4784969) = ';
> nextPutAll: f;
> nextPutAll: 'time = ';
> nextPutAll: t asString;
> nextPutAll: ' mS';
> To effectively filein the remainder of the file contents.
> Shouldn't we?
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: IAM: Increase Amperage Above Maximum
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev