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  

SendCommand

Connects to a TCP Socket on some computer in the network and sends a data packet with the given parameters.

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

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.

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 22nd June 2016


ScriptWorkspace.Window - SendMail.AddAttachmentContainer

Feedback: Report problem or ask question.