How do I synchronize with the Rexec/Rshell controls?

How do I know when the UNIX command has completed?

Date Entered: 09/04/1997    Last Updated: 06/07/2004

When you assign to the Command property in the Rexec/Rshell controls, the control returns immediately after the connection is established, allowing you to send data to the UNIX program through StdIn property if necessary.

The Disconnected event is fired when the command execution completes. If you want to wait for it, you can enter a loop doing DoEvents or Application.ProcessMessages until a global flag is set in the disconnected event or some other condition occurs.

To abort the command before it is completed, simply assign an empty string to the Command property.

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at