Hi Bernhard,

The error message indicates that Squeak couldn't find your st file.
You have to supply the full path to your test.st, e.g.:

CogSpur.r3684.app/Contents/MacOS/Squeak -headless Squeak5.1-15113.image $(pwd)/test.st

Hope this helps.

Best,
Fabio

--

On Sun, Apr 24, 2016 at 2:17 PM Bernhard Pieber <bernhard@pieber.com> wrote:
Dear Squeakers,

Should this work with current CogSpur VMs? I can’t make it work.

I can run this and it opens a window shortly, and prints „test" on the console:
CogSpur.r3684.app/Contents/MacOS/Squeak Squeak5.1-15113.image test.st

My test.st looks like this:
Smalltalk runAndQuit: [FileStream stdout nextPutAll: ‚test‘; cr]

However, if I run the following
CogSpur.r3684.app/Contents/MacOS/Squeak -headless my Squeak5.1-15113.image test.st
I get „Error: No content to install“

I also tried this:
CogSpur.r3684.app/Contents/MacOS/Squeak -headless Squeak5.1-15113.image test.st

I get „Syntax Error: UndefinedObject y“, <<<This string contains a character (ascii value 25) that is not normally used in code>>> y   @   `Argument expected

The same happens with an up-to-date trunk image.

Any tips?

Cheers,
Bernhard

> Am 01.02.2014 um 20:04 schrieb Eliot Miranda <eliot.miranda@gmail.com>:
>
> Hi Frank,
>
>    from the command line say e.g.
>
>    /Applications/Cog.app/Contents/MacOs/Squeak -headless my image.image
>
> I'll email my startup script, which makes this much more convenient, real soon now.
>
> Eliot (phone)