Shell.IsRunning

From Xojo Documentation

Property (As Boolean )
aShell.IsRunning = newBooleanValue
or
BooleanValue = aShell.IsRunning

Supported for all project types and targets.

True if an asynchronous or interactive shell process is running.

Example

This example checks whether the shell is running before trying to use it.

If sh.IsRunning Then
sh.Poll
End If