On 12/28/2012 04:02 PM, Frank Church wrote:

I using the PipeableOSProcess to run ssh commands which return output
and Pharo hangs when I try it. Commands executing locally work okay, but
the ssh ones generally hang.

I do this alot in my current project and I have a small little framework around this because IIRC the "problem" is that your call to #output will block until #atEnd. So what you want to do if you do not want to block is to fork off a background process that reads without blocking. This works really well for me, so I run multiple of these in parallell and each is given its own background Process that reads and copies into a WriteStream on a String. So if I ask my "wrapper" for the output it will ask this stream for its contents instead.

regards, Göran

Reply via email to