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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

SendCommand

Sends a command to listening application.

Component Version macOS Windows Linux Server iOS SDK
Utility 2.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes

Deprecated

This function was deprecated. Use CURL functions to send or WebHook functions to receive instead.

MBS( "SendCommand"; Host; Port; Parameters... )   More

Parameters

Parameter Description Example
Host IP or domain name of the target computer. 127.0.0.1
Port Port number to use. 9999
Parameters... Parameters to send. "RunScript"

Result

Returns function result or an error message.

Description

Sends a command to listening application.
Connects to a TCP Socket on some computer in the network and sends a data packet with the given parameters.
The result is parsed and a string returned as function result. Note that all plugin error messages start with "[MBS]".
See the examples for a sample project and a detailed Readme on the data format.

Version 6.3 now supports passing IPv4, iPv6, or a host name.

This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Parameters parameter as often as you need.

Examples

Sends a SQL select command:

MBS("SendCommand"; "127.0.0.1"; 9999; "SQLSelect"; "SELECT * FROM testTable")

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 25th October 2021


ScriptWorkspace.Window - SendMail.AddAttachmentContainer

💬 Ask a question or report a problem