get output of a forked process on windows
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
Have you checked the Console version of the windows VM? On Tue, Jul 18, 2017 at 10:48 AM, Christophe Demarey < christophe.demarey@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* <http://www.cnrs.fr> *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13
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 <guillermopolito@gmail.com> a écrit :
Have you checked the Console version of the windows VM?
On Tue, Jul 18, 2017 at 10:48 AM, Christophe Demarey <christophe.demarey@inria.fr <mailto:christophe.demarey@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 <http://www.cnrs.fr/>
Web: http://guillep.github.io <http://guillep.github.io/> Phone: +33 06 52 70 66 13
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 <christophe.demarey@inria.fr>:
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 <guillermopolito@gmail.com> a écrit :
Have you checked the Console version of the windows VM?
On Tue, Jul 18, 2017 at 10:48 AM, Christophe Demarey < christophe.demarey@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* <http://www.cnrs.fr/>
*Web:* *http://guillep.github.io* <http://guillep.github.io/> *Phone: *+33 06 52 70 66 13 <+33%206%2052%2070%2066%2013>
Hi Thierry,
Le 18 juil. 2017 à 15:40, Thierry Goubier <thierry.goubier@gmail.com> a écrit :
Hi Christophe,
You have to use ProcessWrapper.
Metacello new configuration: 'ProcessWrapper'; repository: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main <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
participants (3)
-
Christophe Demarey -
Guillermo Polito -
Thierry Goubier