[squeak-dev] Running Squeak fro ma unix shell script file with #! squeak...
Fabio Niephaus
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
> now.
>
> 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?
Fabio
>
> and continue with
>
> | t f |
> t:= [f := 4784969 fastDoublingFib asString] timeToRun.
>
> FileStream stdout
> nextPutAll: 'fib(4784969) = ';
> nextPutAll: f;
> cr;
> nextPutAll: 'time = ';
> nextPutAll: t asString;
> nextPutAll: ' mS';
> cr
>
> To effectively filein the remainder of the file contents.
> Shouldn't we?
>
> tim
> --
> 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...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190505/40c9f355/attachment.html>
More information about the Squeak-dev
mailing list
|