RunTask.ReadErrorText
---------------------

Reads what is in the buffer for the error stream.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RunTask](component_RunTask.md) | [4.1](newinversion41.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [Shell](component_Shell.md) functions instead.

MBS( "RunTask.ReadErrorText" { ; Encoding } ) 

**MBS**( **"RunTask.ReadErrorText";** /\* Reads what is in the buffer for the error stream. \*/  
**$Encoding**) /\* Optional; The text encoding for result.   
Default is native.e.g. "UTF-8" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Encoding | The text encoding for result.    Default is native.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | "UTF-8" | Optional |

### Result

Returns text or error.

### Description

Reads what is in the buffer for the error stream.  
### Examples

Read version of Python:

 Set Variable \[$r ; Value:MBS ( "[RunTask.NewTask](RunTaskNewTask.md)" )\]  
Set Variable \[$r ; Value:MBS ( "[RunTask.SetLaunchPath](RunTaskSetLaunchPath.md)"; "/usr/bin/python" )\]  
Set Variable \[$r ; Value:MBS ( "[RunTask.SetArguments](RunTaskSetArguments.md)"; "-V")\]  
Set Variable \[$r ; Value:MBS ( "[RunTask.Launch](RunTaskLaunch.md)")\]  
Pause/Resume Script \[Duration (seconds): ,1\]  
Show Custom Dialog \["Version"; MBS ("RunTask.ReadErrorText"; "UTF8")\]  
### See also

- [RunTask.Launch](RunTaskLaunch.md)
- [RunTask.NewTask](RunTaskNewTask.md)
- [RunTask.ReadOutputText](RunTaskReadOutputText.md)
- [RunTask.SetArguments](RunTaskSetArguments.md)
- [RunTask.SetLaunchPath](RunTaskSetLaunchPath.md)
- [Version](Version.md)

### Example Databases

- [Shell/RunTask/Run Shell Script on Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/RunTask/Run%20Shell%20Script%20on%20Mac.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 31st May 2024

  
[RunTask.ProcessIdentifier](RunTaskProcessIdentifier.md) - [RunTask.ReadOutputText](RunTaskReadOutputText.md)

[HTML Version](RunTaskReadErrorText.shtml)