De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org]
De la part de Eliot Miranda
Envoy�� : mercredi 30 juillet 2014 16:51
�� : Pharo Development List
Cc : Squeak Virtual Machine Development Discussion
Objet : Re: [Pharo-dev] Headless mode loss of focus under windows 7
Hi Vincent,
Hi,
On Jul 29, 2014, at 11:54 PM, Blondeau Vincent <vincent.blondeau@worldline.com> wrote:
Hi Eliot,
I tried with the latest vm from your website (http://www.mirandabanda.org/files/Cog/VM/VM.r3056/cogwin-14.29.3056.zip -> SqueakConsole.exe). But unfortunately the problem is still there���
I'm sorry for having wasted your time!
Don���t worry. It takes me only 10 minutes :)
There must be some code that gets run during startup that shouldn't be when the VM is running headless. Tracking it down could be done by running
a debug VM under gdb in a console window. I guess the console in which gdb is running will lose focus at the same point. I don't have time to do this right now, but I'll try soon. How motivated are you to fix this?
For now it���s not a top priority but sooner or later I will have the need to run the script again���
I will try to do it this week or next week.
Do I need to take a specific VM compiled with ���g ?
Vincent
De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org]
De la part de Eliot Miranda
Envoy�� : mardi 29 juillet 2014 21:08
�� : Pharo Development List
Objet : Re: [Pharo-dev] Headless mode loss of focus under windows 7
Hi Vincent,
use one if the console VMs from my website. They don't open up another window. Open up a recent cogwin zip and use SqueakConsole.exe
Eliot (phone)
On Jul 29, 2014, at 4:01 AM, Blondeau Vincent <vincent.blondeau@worldline.com> wrote:
Hello everyone,
Currently I use a batch script where a moose image (based on pharo) load a model, export some data and close itself without saving and that several times.
I do it under windows 7 by this kind of loop in a .bat file:
FOR /L %%i IN (1,1,10) DO (
"Pharo.exe --headless sdco-sa-tooling-ci-5.image eval ���<tasks>'
)
The problem is that at each execution of pharo, I lose focus from the window where I was currently working (a notepad by example).
How can I do to solve it?
Thanks in advance!
Cheers,
Vincent BLONDEAU
Ce message et les pi��ces jointes sont confidentiels et r��serv��s �� l'usage exclusif de ses destinataires. Il peut ��galement ��tre prot��g�� par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm��diatement l'exp��diteur et de le
d��truire. L'int��grit�� du message ne pouvant ��tre assur��e sur Internet, la responsabilit�� de Worldline ne pourra ��tre recherch��e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus,
l'exp��diteur ne donne aucune garantie �� cet ��gard et sa responsabilit�� ne saurait ��tre recherch��e pour tout dommage r��sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet,
the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted.