Am 01.04.2006 um 15:35 schrieb Stefan Pantke:
I need to run a shell in interactive mode. Thus, set Mode=2.
Then I subclassed Shell as an AttachedShell, which outputs data
received through events to an attached EditField control.
If I use it in a new window and enter commands interactively -> OK
If I use it from inside an event and pass a long a command to get
executed, I don't see anything.
Are there any secrets?
Here's the secret:
First call Execute() to init the process. Most likely, you'd like
to execute a shell, e.g. /bin/bash
myShell.Execute( "/bin/bash" )
Then, all subsequent communication should go through Write() or
WriteLine()
myShell.Write( "ps" + EndOfLine() )
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>