SSH.WriteHex
------------

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.WriteHex"; SSH; Text { ; Stream } ) 

**MBS**( **"SSH.WriteHex";** /\* Writes text to the channel. \*/  
**$SSH**; /\* The SSH session reference number from the plugin. \*/   
**$Text**; /\* The text to send in hex encoding.e.g. "48656C6C6F" \*/   
**$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 in hex encoding. | "48656C6C6F" |  |
| 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.  
You pass the text hex encoded. For example for "Hello" you pass "48656C6C6F".  
### See also

- [SSH.WriteText](SSHWriteText.md)

This function checks for a license.

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

  
[SSH.WaitSocket](SSHWaitSocket.md) - [SSH.WriteText](SSHWriteText.md)

[HTML Version](SSHWriteHex.shtml)