Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

RunTask.ReadErrorText

Reads what is in the buffer for the error stream.

Component Version macOS Windows Linux Server iOS SDK
RunTask 4.1 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No

Deprecated

This function was deprecated. Use Shell functions instead.

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

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.
"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" )]
Set Variable [$r; Value:MBS( "RunTask.SetLaunchPath"; "/usr/bin/python" )]
Set Variable [$r; Value:MBS( "RunTask.SetArguments"; "-V")]
Set Variable [$r; Value:MBS( "RunTask.Launch")]
Pause/Resume Script [Duration (seconds): ,1]
Show Custom Dialog ["Version"; MBS("RunTask.ReadErrorText"; "UTF8")]

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 13th June 2020


RunTask.ProcessIdentifier - RunTask.ReadOutputText