Running headless on a Mac

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Running headless on a Mac

Frank Shearar-3
OK, so I've run out of patience in my flailing around. All I want is
to run a headless image on a Mac (so I can unbreak the SqueakTrunk-OSX
job, which _used_ to work).

How? Do I say
  "-headless"? ("could not find module vm-display-X11")
  "-vm-display-null -headless"? ("squeak: could not find any sound driver")
  "-vm-sound-null -vm-display-null -headless"? ("could not find module
vm-sound-null")

I don't mind whether I use Cog or Interpreter, as long as I can just
get an image running tests.

Thanks!

frank

Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

Chris Muller-3
I think "-headless" is deprecated.

Did you try "-vm display=none"?

On Sat, Feb 1, 2014 at 12:05 PM, Frank Shearar <[hidden email]> wrote:

> OK, so I've run out of patience in my flailing around. All I want is
> to run a headless image on a Mac (so I can unbreak the SqueakTrunk-OSX
> job, which _used_ to work).
>
> How? Do I say
>   "-headless"? ("could not find module vm-display-X11")
>   "-vm-display-null -headless"? ("squeak: could not find any sound driver")
>   "-vm-sound-null -vm-display-null -headless"? ("could not find module
> vm-sound-null")
>
> I don't mind whether I use Cog or Interpreter, as long as I can just
> get an image running tests.
>
> Thanks!
>
> frank
>

Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

Eliot Miranda-2
In reply to this post by Frank Shearar-3
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)

On Feb 1, 2014, at 10:05 AM, Frank Shearar <[hidden email]> wrote:

> OK, so I've run out of patience in my flailing around. All I want is
> to run a headless image on a Mac (so I can unbreak the SqueakTrunk-OSX
> job, which _used_ to work).
>
> How? Do I say
>  "-headless"? ("could not find module vm-display-X11")
>  "-vm-display-null -headless"? ("squeak: could not find any sound driver")
>  "-vm-sound-null -vm-display-null -headless"? ("could not find module
> vm-sound-null")
>
> I don't mind whether I use Cog or Interpreter, as long as I can just
> get an image running tests.
>
> Thanks!
>
> frank
>

Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

Tom Rushworth-2
Hi Frank,

On 14-02-01 11:04 , Eliot Miranda wrote:
> Hi Frank,
>
>     from the command line say e.g.
>
>     /Applications/Cog.app/Contents/MacOs/Squeak -headless my image.image

Whatever script runs the job may also have to be run by the same User ID
as is logged into the screen.  I ran into this issue trying to get the
CI stuff running on my server.  EVEN HEADLESS, the VM startup code
needed some sort of access to the console, although it doesn't display
anything :(.

>
> I'll email my startup script, which makes this much more convenient, real soon now.
>
> Eliot (phone)
>
> On Feb 1, 2014, at 10:05 AM, Frank Shearar <[hidden email]> wrote:
>
>> OK, so I've run out of patience in my flailing around. All I want is
>> to run a headless image on a Mac (so I can unbreak the SqueakTrunk-OSX
>> job, which _used_ to work).
>>
>> How? Do I say
>>  "-headless"? ("could not find module vm-display-X11")
>>  "-vm-display-null -headless"? ("squeak: could not find any sound driver")
>>  "-vm-sound-null -vm-display-null -headless"? ("could not find module
>> vm-sound-null")
>>
>> I don't mind whether I use Cog or Interpreter, as long as I can just
>> get an image running tests.
>>
>> Thanks!
>>
>> frank
>>
>
>


--
Tom Rushworth

bpi
Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

bpi
In reply to this post by Eliot Miranda-2
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 <[hidden email]>:
>
> 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)


Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

fniephaus
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 <[hidden email]> 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 <[hidden email]>:
>
> 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)




bpi
Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

bpi
Hi Fabio,

Thanks for the tip. However, it does not change the behavior. A window always shows and I still get the same errors. Does -headless on OS X work for you?

Cheers,
Bernhard

> Am 24.04.2016 um 14:37 schrieb Fabio Niephaus <[hidden email]>:
>
> 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 <[hidden email]> 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 <[hidden email]>:
> >
> > 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)
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

fniephaus
What window is still showing up?
Are you sure your absolute path to your .st is correct?

Cheers,
Fabio

--

On Sun, Apr 24, 2016 at 3:19 PM Bernhard Pieber <[hidden email]> wrote:
Hi Fabio,

Thanks for the tip. However, it does not change the behavior. A window always shows and I still get the same errors. Does -headless on OS X work for you?

Cheers,
Bernhard

> Am 24.04.2016 um 14:37 schrieb Fabio Niephaus <[hidden email]>:
>
> 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 <[hidden email]> 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 <[hidden email]>:
> >
> > 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)
>
>
>




Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

Tobias Pape

On 27.04.2016, at 21:32, Fabio Niephaus <[hidden email]> wrote:

> What window is still showing up?
> Are you sure your absolute path to your .st is correct?

Note that the Cocoa-Based Mac VMs do not yet interpret -headless correctly.

Best regards
        -Tobias

Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

johnmci
This is being fixed this week.

On Tue, May 3, 2016 at 1:49 PM, Tobias Pape <[hidden email]> wrote:

On 27.04.2016, at 21:32, Fabio Niephaus <[hidden email]> wrote:

> What window is still showing up?
> Are you sure your absolute path to your .st is correct?

Note that the Cocoa-Based Mac VMs do not yet interpret -headless correctly.

Best regards
        -Tobias




--
===========================================================================
John M. McIntosh. Corporate Smalltalk Consulting Ltd https://www.linkedin.com/in/smalltalk
===========================================================================


bpi
Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

bpi
Hi John,

Should this work already with the latest VMs?

Cheers,
Bernhard

> Am 06.05.2016 um 02:36 schrieb John McIntosh <[hidden email]>:
>
> This is being fixed this week.
>
> On Tue, May 3, 2016 at 1:49 PM, Tobias Pape <[hidden email]> wrote:
>
> On 27.04.2016, at 21:32, Fabio Niephaus <[hidden email]> wrote:
>
> > What window is still showing up?
> > Are you sure your absolute path to your .st is correct?
>
> Note that the Cocoa-Based Mac VMs do not yet interpret -headless correctly.
>
> Best regards
>         -Tobias


Reply | Threaded
Open this post in threaded view
|

Re: Running headless on a Mac

johnmci
I believe so, give it a whirl

On Sun, Jul 3, 2016 at 4:33 AM, Bernhard Pieber <[hidden email]> wrote:
Hi John,

Should this work already with the latest VMs?

Cheers,
Bernhard

> Am 06.05.2016 um 02:36 schrieb John McIntosh <[hidden email]>:
>
> This is being fixed this week.
>
> On Tue, May 3, 2016 at 1:49 PM, Tobias Pape <[hidden email]> wrote:
>
> On 27.04.2016, at 21:32, Fabio Niephaus <[hidden email]> wrote:
>
> > What window is still showing up?
> > Are you sure your absolute path to your .st is correct?
>
> Note that the Cocoa-Based Mac VMs do not yet interpret -headless correctly.
>
> Best regards
>         -Tobias





--
===========================================================================
John M. McIntosh. Corporate Smalltalk Consulting Ltd https://www.linkedin.com/in/smalltalk
===========================================================================