Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Waits for current task to terminate.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RunTask | 6.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
This function was deprecated. Use Shell functions instead.
Parameter | Description | Example |
---|---|---|
Timeout | The maximum time to wait. | 30 |
Returns 1, 0 or error.
Run a shell tool and wait for ending:
Let ( [
r = MBS( "RunTask.NewTask" );
r = MBS( "RunTask.SetLaunchPath"; "/bin/sh" );
r = MBS( "RunTask.SetArguments"; "-c"; "date;sleep 5;date" );
r = MBS( "RunTask.Launch");
r = MBS( "RunTask.Wait"; "30");
output = MBS( "RunTask.ReadOutputText"; "utf8")
]
; output )
Created 22nd September 2016, last changed 13th June 2020
RunTask.TerminationStatus - RunTask.WriteInputText
Feedback: Report problem or ask question.