Shell.IsRunning
---------------

Queries whether application is running.

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

MBS( "Shell.IsRunning"; ShellRef ) 

**MBS**( **"Shell.IsRunning";** /\* Queries whether application is running. \*/  
**$ShellRef**) /\* The reference number from the shell.e.g. $shell \*/ 

### Parameters

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

### Result

Returns 1 or 0 or error.

### Description

Queries whether application is running.  
Returns 1 if running or 0 if not.  
  
Please use 8.2 or newer on FileMaker Cloud as [Shell.Wait](ShellWait.md)/Shell.IsRunning was broken there before.  
### See also

- [Shell.Execute](ShellExecute.md)
- [Shell.ReadOutputText](ShellReadOutputText.md)
- [Shell.Wait](ShellWait.md)

### Release notes

- **Version 8.2**
    - Fixed bug in [Shell.IsRunning](http://www.mbsplugins.eu/ShellIsRunning.shtml) on Linux.

### Example Databases

- [Shell/Shell Ping](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/Shell%20Ping.shtml#1ScriptAnchor_)
- [Shell/Shell](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/Shell.shtml#1ScriptAnchor_)

### Blog Entries

- [Tips for FileMaker Data Migration Tool](https://www.mbsplugins.de/archive/2018-06-09/Tips_for_FileMaker_Data_Migrat/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 8.2pr8](https://www.mbsplugins.de/archive/2018-05-16/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [Convert to MP3 with new Shell commands and ffmpeg](https://www.mbsplugins.de/archive/2017-11-16/Convert_to_MP3_with_new_Shell_/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st November 2017 , last changed 14th May 2018

  
[Shell.GetUsername](ShellGetUsername.md) - [Shell.List](ShellList.md)

[HTML Version](ShellIsRunning.shtml)