Re: [Pharo-users] get output of a forked process on windows

2017-07-19 Thread Christophe Demarey
Hi Thierry,

> Le 18 juil. 2017 à 15:40, Thierry Goubier  a écrit 
> :
> 
> Hi Christophe,
> 
> You have to use ProcessWrapper.
> 
> Metacello new
>   configuration: 'ProcessWrapper';
>   repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main 
> ';
>   load

Thanks, it is working with the given example from 
http://smalltalkhub.com/#!/~hernan/ProcessWrapper/.

Best regards,
Christophe



Re: [Pharo-users] get output of a forked process on windows

2017-07-18 Thread Thierry Goubier
Hi Christophe,

You have to use ProcessWrapper.

Metacello new
  configuration: 'ProcessWrapper';
  repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
  load

(as extracted from the baseline of GitFileTree for Pharo4)

Regards,

Thierry


2017-07-18 15:34 GMT+02:00 Christophe Demarey :

> PharoConsole.exe is only available for image versions > 50.
> I need a solution that works on older image versions.
>
> Thanks for the advice,
> Christophe
>
> Le 18 juil. 2017 à 14:26, Guillermo Polito  a
> écrit :
>
> Have you checked the Console version of the windows VM?
>
> On Tue, Jul 18, 2017 at 10:48 AM, Christophe Demarey <
> christophe.dema...@inria.fr> wrote:
>
>> Hi,
>>
>> I would like to evaluate a Smalltalk expression in a forked process (i.e.
>> something like OSProcess thisOSProcess waitForCommandOutput: 'pharo
>> Pharo.image eval "SystemVersion current dottedMajorMinor"').
>> It is doable on linux/mac with OSProcess but not on Windows. Is there
>> another way to do that on Windows? I would prefer to avoid to write to a
>> file.
>>
>> Thanks,
>> Christophe
>>
>
>
>
> --
>
> Guille Polito
>
> Research Engineer
> French National Center for Scientific Research - *http://www.cnrs.fr*
> 
>
>
> *Web:* *http://guillep.github.io* 
> *Phone: *+33 06 52 70 66 13 <+33%206%2052%2070%2066%2013>
>
>
>


Re: [Pharo-users] get output of a forked process on windows

2017-07-18 Thread Christophe Demarey
PharoConsole.exe is only available for image versions > 50.
I need a solution that works on older image versions.

Thanks for the advice,
Christophe

> Le 18 juil. 2017 à 14:26, Guillermo Polito  a 
> écrit :
> 
> Have you checked the Console version of the windows VM?
> 
> On Tue, Jul 18, 2017 at 10:48 AM, Christophe Demarey 
> mailto:christophe.dema...@inria.fr>> wrote:
> Hi,
> 
> I would like to evaluate a Smalltalk expression in a forked process (i.e. 
> something like OSProcess thisOSProcess waitForCommandOutput: 'pharo 
> Pharo.image eval "SystemVersion current dottedMajorMinor"').
> It is doable on linux/mac with OSProcess but not on Windows. Is there another 
> way to do that on Windows? I would prefer to avoid to write to a file.
> 
> Thanks,
> Christophe
> 
> 
> 
> -- 
>
> Guille Polito
> 
> Research Engineer
> French National Center for Scientific Research - http://www.cnrs.fr 
> 
> 
> 
> Web: http://guillep.github.io 
> Phone: +33 06 52 70 66 13



Re: [Pharo-users] get output of a forked process on windows

2017-07-18 Thread Guillermo Polito
Have you checked the Console version of the windows VM?

On Tue, Jul 18, 2017 at 10:48 AM, Christophe Demarey <
christophe.dema...@inria.fr> wrote:

> Hi,
>
> I would like to evaluate a Smalltalk expression in a forked process (i.e.
> something like OSProcess thisOSProcess waitForCommandOutput: 'pharo
> Pharo.image eval "SystemVersion current dottedMajorMinor"').
> It is doable on linux/mac with OSProcess but not on Windows. Is there
> another way to do that on Windows? I would prefer to avoid to write to a
> file.
>
> Thanks,
> Christophe
>



-- 



Guille Polito


Research Engineer

French National Center for Scientific Research - *http://www.cnrs.fr*




*Web:* *http://guillep.github.io* 

*Phone: *+33 06 52 70 66 13


[Pharo-users] get output of a forked process on windows

2017-07-18 Thread Christophe Demarey
Hi,

I would like to evaluate a Smalltalk expression in a forked process (i.e. 
something like OSProcess thisOSProcess waitForCommandOutput: 'pharo Pharo.image 
eval "SystemVersion current dottedMajorMinor"').
It is doable on linux/mac with OSProcess but not on Windows. Is there another 
way to do that on Windows? I would prefer to avoid to write to a file.

Thanks,
Christophe