I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán |
Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán De: "pablo digonzelli" <[hidden email]> Para: "Any question about pharo is welcome" <[hidden email]> Enviados: Jueves, 12 de Marzo 2015 15:47:49 Asunto: pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán |
Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . Any suggestion? TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán De: "Pablo Digonzelli" <[hidden email]> Para: "Any question about pharo is welcome" <[hidden email]> Enviados: Jueves, 12 de Marzo 2015 16:20:08 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app Hi, i solve the problem! ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit works very well TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán De: "pablo digonzelli" <[hidden email]> Para: "Any question about pharo is welcome" <[hidden email]> Enviados: Jueves, 12 de Marzo 2015 15:47:49 Asunto: pharo headless and without gui. Seaside app I need to run pharo headless and without gui for a Seaside app i am working on. I user pharo -vm-display-null --headless imagefile and does not work. May be someone can help me. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán |
Headless on windows is not working I think. There is code in the VM but it looks more dead than alive. There is a console version of Squeak and we may want to revive that. There us even code for a Windows service in there... Phil Le 12 mars 2015 20:41, "Pablo R. Digonzelli" <[hidden email]> a écrit :
|
that’s not related, —no-quit should be working (and —headless should be letting a window in the try). can you provide more information? vm version? image version? anything relevant? just asking without information is like going to the doctor and just say “it hurts me”… not much we can do to help. Esteban
|
I think phil is right. -vm-display-null is the question . it aborts the process. Does not matter wich vm and image are you using. For example i am trying pharo4 latest image latest vm. TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán De: "Esteban Lorenzano" <[hidden email]> Para: "Any question about pharo is welcome" <[hidden email]> Enviados: Jueves, 12 de Marzo 2015 17:42:55 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app
that’s not related, —no-quit should be working (and —headless should be letting a window in the try). can you provide more information? vm version? image version? anything relevant? just asking without information is like going to the doctor and just say “it hurts me”… not much we can do to help. Esteban
|
On Thu, Mar 12, 2015 at 06:23:28PM -0300, Pablo R. Digonzelli wrote:
> I think phil is right. -vm-display-null is the question . it aborts the process. > Does not matter wich vm and image are you using. > For example i am trying pharo4 latest image latest vm. The -vm-display-null parameter is specific to Ian Piumarta's unix VM. It is part of the loadable VM module system that he made for sound and displays. You will find this in the various VMs that run on top of Ian platform code. The Windows VMs originate from Andreas Raab's code base, which has different VM command line parameters. For common things like starting a headless VM, it would be a good idea to make the command line parameters consistent across VMs. Maybe that could be done most easily in the start scripts, as opposed to the VM executables. Dave > > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "Esteban Lorenzano" <[hidden email]> > Para: "Any question about pharo is welcome" <[hidden email]> > Enviados: Jueves, 12 de Marzo 2015 17:42:55 > Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app > > > > > > On 12 Mar 2015, at 21:23, [hidden email] wrote: > > > > Headless on windows is not working I think. > > > > that???s not related, ???no-quit should be working (and ???headless should be letting a window in the try). > > can you provide more information? > > vm version? > image version? > anything relevant? > > just asking without information is like going to the doctor and just say ???it hurts me?????? not much we can do to help. > > Esteban > > > BQ_BEGIN > > > > There is code in the VM but it looks more dead than alive. There is a console version of Squeak and we may want to revive that. There us even code for a Windows service in there... > > Phil > Le 12 mars 2015 20:41, "Pablo R. Digonzelli" < [hidden email] > a ??crit : > > BQ_BEGIN > > Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . > Any suggestion? > > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "Pablo Digonzelli" < [hidden email] > > Para: "Any question about pharo is welcome" < [hidden email] > > Enviados: Jueves, 12 de Marzo 2015 16:20:08 > Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app > > Hi, i solve the problem! > > ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit > > works very well > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "pablo digonzelli" < [hidden email] > > Para: "Any question about pharo is welcome" < [hidden email] > > Enviados: Jueves, 12 de Marzo 2015 15:47:49 > Asunto: pharo headless and without gui. Seaside app > > I need to run pharo headless and without gui for a Seaside app i am working on. > I user pharo -vm-display-null --headless imagefile and does not work. > May be someone can help me. > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > BQ_END > > > BQ_END > > > |
I understand , wher can i get Andrea's command line info?
TIA Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: [hidden email] [hidden email] Cel: 5493815982714 ----- Mensaje original ----- De: "David T. Lewis" <[hidden email]> Para: "Any question about pharo is welcome" <[hidden email]> Enviados: Jueves, 12 de Marzo 2015 20:54:20 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app On Thu, Mar 12, 2015 at 06:23:28PM -0300, Pablo R. Digonzelli wrote: > I think phil is right. -vm-display-null is the question . it aborts the process. > Does not matter wich vm and image are you using. > For example i am trying pharo4 latest image latest vm. The -vm-display-null parameter is specific to Ian Piumarta's unix VM. It is part of the loadable VM module system that he made for sound and displays. You will find this in the various VMs that run on top of Ian platform code. The Windows VMs originate from Andreas Raab's code base, which has different VM command line parameters. For common things like starting a headless VM, it would be a good idea to make the command line parameters consistent across VMs. Maybe that could be done most easily in the start scripts, as opposed to the VM executables. Dave > > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "Esteban Lorenzano" <[hidden email]> > Para: "Any question about pharo is welcome" <[hidden email]> > Enviados: Jueves, 12 de Marzo 2015 17:42:55 > Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app > > > > > > On 12 Mar 2015, at 21:23, [hidden email] wrote: > > > > Headless on windows is not working I think. > > > > that???s not related, ???no-quit should be working (and ???headless should be letting a window in the try). > > can you provide more information? > > vm version? > image version? > anything relevant? > > just asking without information is like going to the doctor and just say ???it hurts me?????? not much we can do to help. > > Esteban > > > BQ_BEGIN > > > > There is code in the VM but it looks more dead than alive. There is a console version of Squeak and we may want to revive that. There us even code for a Windows service in there... > > Phil > Le 12 mars 2015 20:41, "Pablo R. Digonzelli" < [hidden email] > a ??crit : > > BQ_BEGIN > > Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit does not work . > Any suggestion? > > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "Pablo Digonzelli" < [hidden email] > > Para: "Any question about pharo is welcome" < [hidden email] > > Enviados: Jueves, 12 de Marzo 2015 16:20:08 > Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app > > Hi, i solve the problem! > > ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm --encoding utf8 imagefile.image --no-quit > > works very well > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "pablo digonzelli" < [hidden email] > > Para: "Any question about pharo is welcome" < [hidden email] > > Enviados: Jueves, 12 de Marzo 2015 15:47:49 > Asunto: pharo headless and without gui. Seaside app > > I need to run pharo headless and without gui for a Seaside app i am working on. > I user pharo -vm-display-null --headless imagefile and does not work. > May be someone can help me. > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > BQ_END > > > BQ_END > > > |
squeak vm info is for squeak vm, not for pharo vm (which has some differences… for example). I will ask you again to give us more information about your command line, what you are trying to do, etc. otherwise you will stay flipping around, because people will answer in general… not very useful for you. Esteban
|
Esteban, i am trying to deploy a Seaside app in Windows. I want pharo running headless and i will want to implement it as Windows Service. But does not matter. Trying start pharo4 last image last vm ( https://ci.inria.fr/pharo/) in headless . pharo -vm-display-null -vm-sound-null imagefile.image --no-quit. It does not work. Abort pharo -vm-sound-null imagefile.image --no-quit. I works but with gui. I hope it will help you to understand the situation. Ing. Pablo Digonzelli Software Solutions IP-Solutiones SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán De: "Esteban Lorenzano" <[hidden email]> Para: "Any question about pharo is welcome" <[hidden email]> Enviados: Viernes, 13 de Marzo 2015 14:00:52 Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app squeak vm info is for squeak vm, not for pharo vm (which has some differences… for example). I will ask you again to give us more information about your command line, what you are trying to do, etc. otherwise you will stay flipping around, because people will answer in general… not very useful for you. Esteban
|
In reply to this post by EstebanLM
There is WinMain in sqWin32Intel.c
and LRESULT CALLBACK MainWndProcW(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) is in sqWin32Window.c http://stackoverflow.com/questions/18709403/winmain-vs-main-c sqWin32Service.c has Windows service support but I don't know how this works. In WinMain, we get this: case 1: /* full usage */ abortMessage(TEXT("%s"), TEXT("Usage: " VM_NAME " [vmOptions] imageFile [imageOptions]\n\n") TEXT("vmOptions:") /* TEXT("\n\t-service: ServiceName \t(install Squeak as NT service)") */ TEXT("\n\t--headless \t\t(force Squeak to run headless)") TEXT("\n\t--timephases (print start load and run times)") TEXT("\n\t--log: LogFile \t\t(use LogFile for VM messages)") But the code appears to still exist... parseVMArgument(int argc, char *argv[]) { /* flags */ if (!strcmp(argv[0], "--help")) { printUsage(1); return 1; } else if (!strcmp(argv[0], "--version")) { versionInfo(); return 1; } else if (!strcmp(argv[0], "--headless")) { fHeadlessImage = true; return 1; } else if (!strcmp(argv[0], "--headfull")) { fHeadlessImage = false; return 1;} else if (!strcmp(argv[0], "--timephases")) { printPhaseTime(1); return 1; } #ifdef VISTA_SECURITY /* IE7/Vista protected mode support */ /* started with low rights, use alternate untrustedUserDirectory */ else if (!strcmp(argv[0], "--lowRights")) { fLowRights = true; return 1; } #endif /* VISTA_SECURITY */ #if (STACKVM || NewspeakVM) && !COGVM else if (!strcmp(argv[0], "--sendtrace")) { extern sqInt sendTrace; sendTrace = 1; return 1; } #endif /* parameters */ else if (argc > 1 && !strcmp(argv[0], "--service")) { installServiceName = argv[1]; return 2; } else if (!strncmp(argv[0], "--service:", 9)) { installServiceName = argv[0] + 9; return 1; } else if (argc > 1 && !strcmp(argv[0], "--log")) { logName = argv[1]; return 2; } else if (!strncmp(argv[0], "--log:", 5)) { logName = argv[0] + 5; return 1; } But despite these options, there is no service nor headless thing working atm. What is the basic thing to do to get Pharo running as a service? I can compile the Windows VM, so, the next step would be to get this working. Which I could do if pointed in a given direction by VM experts who are in the know. A lot of the Windows VM code is Andreas code but we need to take that back into our hands. Phil On Fri, Mar 13, 2015 at 6:00 PM, Esteban Lorenzano <[hidden email]> wrote: > squeak vm info is for squeak vm, not for pharo vm (which has some > differences… for example). > > I will ask you again to give us more information about your command line, > what you are trying to do, etc. > > otherwise you will stay flipping around, because people will answer in > general… not very useful for you. > > Esteban > > On 13 Mar 2015, at 16:21, Pablo R. Digonzelli <[hidden email]> wrote: > > I understand , wher can i get Andrea's command line info? > TIA > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucumán > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > ----- Mensaje original ----- > De: "David T. Lewis" <[hidden email]> > Para: "Any question about pharo is welcome" <[hidden email]> > Enviados: Jueves, 12 de Marzo 2015 20:54:20 > Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app > > On Thu, Mar 12, 2015 at 06:23:28PM -0300, Pablo R. Digonzelli wrote: > > I think phil is right. -vm-display-null is the question . it aborts the > process. > Does not matter wich vm and image are you using. > For example i am trying pharo4 latest image latest vm. > > > The -vm-display-null parameter is specific to Ian Piumarta's unix VM. It is > part of the loadable VM module system that he made for sound and displays. > You will find this in the various VMs that run on top of Ian platform code. > The Windows VMs originate from Andreas Raab's code base, which has different > VM command line parameters. > > For common things like starting a headless VM, it would be a good idea to > make the command line parameters consistent across VMs. Maybe that could be > done most easily in the start scripts, as opposed to the VM executables. > > Dave > > > > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "Esteban Lorenzano" <[hidden email]> > Para: "Any question about pharo is welcome" <[hidden email]> > Enviados: Jueves, 12 de Marzo 2015 17:42:55 > Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app > > > > > > On 12 Mar 2015, at 21:23, [hidden email] wrote: > > > > Headless on windows is not working I think. > > > > that???s not related, ???no-quit should be working (and ???headless should > be letting a window in the try). > > can you provide more information? > > vm version? > image version? > anything relevant? > > just asking without information is like going to the doctor and just say > ???it hurts me?????? not much we can do to help. > > Esteban > > > BQ_BEGIN > > > > There is code in the VM but it looks more dead than alive. There is a > console version of Squeak and we may want to revive that. There us even code > for a Windows service in there... > > Phil > Le 12 mars 2015 20:41, "Pablo R. Digonzelli" < [hidden email] > a > ??crit : > > BQ_BEGIN > > Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit > does not work . > Any suggestion? > > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "Pablo Digonzelli" < [hidden email] > > Para: "Any question about pharo is welcome" < [hidden email] > > Enviados: Jueves, 12 de Marzo 2015 16:20:08 > Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app > > Hi, i solve the problem! > > ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm > --encoding utf8 imagefile.image --no-quit > > works very well > > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > De: "pablo digonzelli" < [hidden email] > > Para: "Any question about pharo is welcome" < [hidden email] > > Enviados: Jueves, 12 de Marzo 2015 15:47:49 > Asunto: pharo headless and without gui. Seaside app > > I need to run pharo headless and without gui for a Seaside app i am working > on. > I user pharo -vm-display-null --headless imagefile and does not work. > May be someone can help me. > TIA > > > Ing. Pablo Digonzelli > Software Solutions > IP-Solutiones SRL > Metrotec SRL > 25 de Mayo 521 > San Miguel de Tucum??n > Email: [hidden email] > [hidden email] > Cel: 5493815982714 > > > BQ_END > > > BQ_END > > -- --- Philippe Back Visible Performance Improvements Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:[hidden email] | Web: http://philippeback.eu Blog: http://philippeback.be | Twitter: @philippeback Youtube: http://www.youtube.com/user/philippeback/videos High Octane SPRL rue cour Boisacq 101 | 1301 Bierges | Belgium Pharo Consortium Member - http://consortium.pharo.org/ Featured on the Software Process and Measurement Cast - http://spamcast.libsyn.com Sparx Systems Enterprise Architect and Ability Engineering EADocX Value Added Reseller |
Free forum by Nabble | Edit this page |