# dev-att command

The dev-att BASIC program attaches an
unattached port to the current process. This command only changes
ownership and is required prior to using the get or send statements
in BASIC.

The user gets exclusive ownership of the attached port.
No other processes are allowed to attach to the port until the owner
releases the port.

The port is detached by using the TCL command dev-det or by logging off.

If the target port is
not linked to the current process, the target port must be unlinked
by the unlink-pibdev command, or use the u option to force the unlink.

Attaching to a device
the current process is linked to, but does not remove that link.

## Syntax

```
dev-att port.number{(options}
```

## Parameter(s)

| options | q | Quiet |
| --- | --- | --- |
| u | Unlinks the target device if required. Note: Attachment fails on a linked device, unless the current process is linked to it. | |

## Example(s)

Attaches port 3 to process 0.

```
dev-att 3
Device # 3: Attached to pib # 0
```

## See also

- [converse command](https://d3codex.com/tcl/converse-command/)
- [dev-det command](https://d3codex.com/tcl/dev-det-command/)
- [get statement](https://d3codex.com/pickbasic-flashbasic/get-statement/)
- [link-pibdev command](https://d3codex.com/tcl/link-pibdev-command/)
- [send statement](https://d3codex.com/pickbasic-flashbasic/send-statement/)
- [tandem command](https://d3codex.com/tcl/tandem-command/)
- [unlink-pibdev command](https://d3codex.com/tcl/unlink-pibdev-command/)

---
Source: https://d3codex.com/tcl/dev-att-command/ - part of the D3Codex reference.
