Well, I have to take back the comment on command:. I have this code snippet that gets output from a command:
You want to use waitForCommand: instead of command:, likeTranscript show: (PipeableOSProcess waitForCommand: 'whoami') outputcommand: doesn't wait for output and is useful only for commands that don't return anything. It's kind of useless for anything that returns values. I haven't tried this on Pharo 5, I've gotten it to work on Pharo 4.��
On Friday, March 4, 2016, Dimitris Chloupis <kilon.alios@gmail.com> wrote:I once reported a bug for OSProcess on MacOSStill experience the same problem, is this suppose to be fixed with new OSProcess ?
https://pharo.fogbugz.com/f/cases/16944/OSProcess-stdout-is-not-returned-back-to-pharo