Shell.ExitCode
--------------

Queries exit code of child application.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [7.5](newinversion75.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Shell.ExitCode"; ShellRef ) 

**MBS**( **"Shell.ExitCode";** /\* Queries exit code of child application. \*/  
**$ShellRef**) /\* The reference number from the shell.e.g. $shell \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |

### Result

Returns number or error.

### Description

Queries exit code of child application.  
Not defined while the child process is still running.  
### Release notes

- **Version 13.0**
    - Fixed [Shell.ExitCode](https://www.mbsplugins.eu/ShellExitCode.shtml) to work better on Linux.

### Blog Entries

- [MBS FileMaker Plugin, version 13.0pr8](https://www.mbsplugins.de/archive/2023-01-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st November 2017 , last changed 11st November 2017

  
[Shell.Execute](ShellExecute.md) - [Shell.GetApplicationName](ShellGetApplicationName.md)

[HTML Version](ShellExitCode.shtml)