Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Waits for current task to terminate.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
RunTask 6.4 Yes No Yes, macOS only No No
MBS( "RunTask.Wait"; Timeout )   More


Parameter Description Example value
Timeout The maximum time to wait. 30


Returns 1, 0 or error.


Waits for current task to terminate.
Returns 0 if task terminated or 1 if task is still running.


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 )

See also

Example Databases

Blog Entries

Created 22nd September 2016, last changed 22nd September 2016

RunTask.TerminationStatus   -   RunTask.WriteInputText

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins