SSH.EOF
-------

Check a channel's EOF status.

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

MBS( "SSH.EOF"; SSH ) 

**MBS**( **"SSH.EOF";** /\* Check a channel's EOF status. \*/  
**$SSH**) /\* The SSH session reference number from the plugin. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SSH | The SSH session reference number from the plugin. | $ssh |

### Result

Returns state or error.

### Description

Check a channel's EOF status.  
Check if the remote host has sent an EOF status for the selected stream.  
Returns 1 if the remote host has sent EOF, otherwise 0.  
  
Also check for other functions like read/write to see if they return an error, e.g. query MBS("[IsError](IsError.md)").  
### See also

- [IsError](IsError.md)

This function checks for a license.

Created 29th May 2016 , last changed 16th August 2021

  
[SSH.Disconnect](SSHDisconnect.md) - [SSH.Execute](SSHExecute.md)

[HTML Version](SSHEOF.shtml)