Platforms to show: All Mac Windows Linux Cross-Platform
Back to ShellMBS class.
ShellMBS.Arguments as String()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
You can add arguments to this array.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Sometimes this is needed as some processes wait till stdin is closed.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Automatically done in destructor.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
ShellMBS.Execute(Executable as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Pass path to executable to run.
Opens the streams stdin, stdout and stderr.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
This will check for pending event and fire events if needed.
Internally we call this with a timer for the shell object, but you can call this in a tight loop.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Queries available bytes to return all the data in the buffer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Queries available bytes to return all the data in the buffer.
ShellMBS.SetArguments(arguments() as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
ShellMBS.Terminate(WinExitCode as Integer = 255) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
ExitCode is only used on Windows.
Returns true on success.
ShellMBS.Wait(TimeOut as double = 30.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Yields time and waits until time passed or process terminates.
ShellMBS.WriteInput(data as string) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Shell | MBS Util Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Returns number of bytes written.
The items on this page are in the following plugins: MBS Util Plugin.
