David T. Lewis wrote
PipeableOSProcess class>>waitForCommand: is just a loop...
David, It doesn't seem like that's the problem because it's intermittent. I can run the exact same command with the same output and sometimes it recognizes that it's complete and sometimes not. I don't know if it's related, but when I do: p := PipeableOSProcess command: '/usr/bin/expect /path/to/expect.exp'. where expect.exp is a wrapper to supply login credentials to ssh, I get a similar problem... p next: 100. "This returns the welcome text from the server... ssh has successfully connected" p nextPutAll: 'ls', Character cr asString. "I send the ls command to the remote server" p atEnd. "Primitive failed <primitive: 'primitiveFileSetPosition' module: 'FilePlugin'> in AttachableFileStream(StandardFileStream)>>primSetPosition:to:" "weird, no?" p upToEnd. "This hangs, even though there is output in the pipe" p next: 5. "In fact, if I get the output a little at a time, I can see the result of the ls command" What do you think? Thanks. Sean -- View this message in context: http://forum.world.st/OSProcess-is-process-done-tp4569088p4575379.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.