Re: [Pharo-users] Use Shell Command from Pharo

2016-03-20 Thread g_ongenae
Thanks for the answer, I've already seen this page. And the problem is when I do : OSProcess command: 'touch files.txt', I can't find the created files. But I don't have any error message. For the new lib, I'm working on Pharo 4, and it only works and version 5. -- Guillaume -- View this mess

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Dale Henrichs
I seem to recall that on the mac there was a system option of some sort that "launches apps from a sensible" location --- of course the Apple powers that be may have removed that capability recently... Dale On 3/19/16 9:41 AM, Damien Pollet wrote: On 19 March 2016 at 16:45, Peter Uhnák

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Damien Pollet
On 19 March 2016 at 16:45, Peter Uhnák wrote: > I don't actually see the reason why it should assume root folder if you > don't specify a path… that's stupid on many levels (I blame mac). > It's root because that's where the system launches applications from, when you double-click them in the Fi

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Peter Uhnák
On Sat, Mar 19, 2016 at 9:16 AM, john pfersich wrote: > continued... > (this is on Mac OSX, but it should be the same on any *nix). > I don't actually see the reason why it should assume root folder if you don't specify a path… that's stupid on many levels (I blame mac). On Linux you get home, a

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Peter Uhnák
You need to be a bit more descriptive of what "doesn't work" mean, otherwise we can't help you. :) Have you seen this? http://pharo.gemtalksystems.com/book/PharoTools/OSProcess/ Also there's a new lib for OS http://forum.world.st/ANN-OSSubprocess-v0-2-0-release-td4872820.html ( https://github.com

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Mariano Martinez Peck
HI Guillaume, I don't have much to add to what Peter said. As for OSProcess yes, we have some problems in latest VMs / images. At some point stdout redirection was not working. Then it seems it got fixed but now I am not sure if it is working as there were other people reporting it didn't work. A

[Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread Guillaume Ongenae
Hello, I would like to use execute shell command from Pharo. I found OSProcess to do that but it doesn't work. Thanks. -- [image: --] Guillaume Ongenae [image: https://]about.me/guillaume.ongenae

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-19 Thread john pfersich
continued... (this is on Mac OSX, but it should be the same on any *nix). I don't do Windows. If you want to see the file try touch ~/files.txt By the way, the code above works in Pharo 4.0, should work with the latest Pharo 5.0 beta, but I haven't tested the code above with Pharo 5.0. On Fri, Ma

Re: [Pharo-users] Use Shell Command from Pharo

2016-03-18 Thread john pfersich
if you do something like this: | p d | p := (PipeableOSProcess command: 'touch files.txt'). p keepInitialStdOutOpen: true. d := Delay forMilliseconds: 250. d wait. [Transcript show: (p next: 300); flush. p atEnd] whileFalse: [d wait]. Transcript show: (p errorUpToEnd). p closeOutput. then you'll