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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.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
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

Created 18th August 2014, last changed 21st June 2021


ScriptWorkspace.Window - SendMail.AddAttachmentContainer

Feedback: Report problem or ask question.