On Feb 5, 2007, at 3:08 PM, Steve Roy wrote:
On Monday, February 05, 2007, at 02:41PM, "Norman Palardy" <[EMAIL PROTECTED]> wrote:But when I run your code if I put dim s as string s = me.result in the completed and run with "pwd" as the command event I get / which is correct as the Shell does not execute a particular user login script nor start from your home directoryHowever the point is that DataAvailable is never called. If I'm going to use the Result property in the Completed event, I might as well not use the asynchronous mode at all.
My suspicion is that the Completed event occurred so fast. In your example project, run a longer process such as "ls -lR /"
The DataAvailable event occurs a lot here. The addition of the code to the Completed event get the last portion of the output since the Completed event supersedes the DataAvailable event.
Tim _______________________________________________ Unsubscribe: <[EMAIL PROTECTED]> REAL Software has decided to consolidate this mailing list with the online Forums. On Monday, February 12, 2007, this mailing list will no longer be active. We encourage you to continue your REALbasic and REAL SQL Server discussions on the Forums. If you are not presently a member of the forum, please sign up today at <http://forums.realsoftware.com>.
