SSH.WriteText
-------------

Writes text to the channel.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SSH](component_SSH.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "SSH.WriteText"; SSH; Text { ; Encoding; Stream } ) 

**MBS**( **"SSH.WriteText";** /\* Writes text to the channel. \*/  
**$SSH**; /\* The SSH session reference number from the plugin. \*/   
**$Text**; /\* The text to send.e.g. "Hello World" \*/   
**$Encoding**; /\* Optional; The text encoding for text parameter.   
Default is UTF-8.e.g. "UTF8" \*/   
**$Stream**) /\* Optional; Which stream to write.  
Can be stdout or stderr.   
Stdout is default if parameter is empty or missing.e.g. "StdOut" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| SSH | The SSH session reference number from the plugin. | $ssh |  |
| Text | The text to send. | "Hello World" |  |
| Encoding | The text encoding for text parameter.    Default is UTF-8.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | "UTF8" | Optional |
| Stream | Which stream to write.   Can be stdout or stderr.    Stdout is default if parameter is empty or missing. | "StdOut" | Optional |

### Result

Returns the number of bytes written or an error message.

### Description

Writes text to the channel.  
### See also

- [SSH.WriteHex](SSHWriteHex.md)

This function checks for a license.

Created 29th May 2016 , last changed 1st June 2016

  
[SSH.WriteHex](SSHWriteHex.md) - [Saxon.Clear](SaxonClear.md)

[HTML Version](SSHWriteText.shtml)