CLOSE Command

Material prepared from M Programming Book (Page 162) [WALTERS1997] and GT.M Programmer’s Guide

Description

The CLOSE command closes a connection between the M process and I/O device. If the connection does not exist, the close command is ignored. Parameters can be specified for the process to manipulate the device with as the connection is closed.

Examples

CLOSE "/dev/thermometer"

closes a thermometer device

CLOSE "/dev/thermometer":(READY)

closes a thermometer device and sets it as ready

CLOSE 1

closes the printer

CLOSE 5

closes the external communications port

See Devices for a list of device identifiers.