On Feb 05, 2007, at 2:25 PM, Steve Roy wrote:

On Monday, February 05, 2007, at 02:12PM, "Norman Palardy" <[EMAIL PROTECTED]> wrote:

I also just found out that the Completed event does fire even
though DataAvailable does nothing.

THAT is really bizarre.
And no result ... weird

That gave me the idea of checking what the Result property contains when the Completed even fires, and interestingly pwd got me this:

pwd: /bin/pwd: cannot execute binary file

And ls -l got me this:

ls: /bin/ls: cannot execute binary file

These commands work just fine on my system when run normally (manually in a terminal). I also see that changing to synchronous mode (Mode = 0) gives me the same result above (cannot execute binary file). If the shell outputs this to standard err and DataAvailable only read standard out, that would explain why I don't see any output, although it wouldn't explain why pwd and ls don't work.

The Shell does use a different shell than your normal login shell
I believe it's using sh at the moment

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 directory
_______________________________________________
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>.

Reply via email to