fileevent(n) Tcl Built-In Commands fileevent(n)

```

```

# [NAME](#NAME)

fileevent - Execute a script when a channel becomes readable or writable

# [SYNOPSIS](#SYNOPSIS)

**fileevent channel readable** ?*script*?

**fileevent channel writable** ?*script*?

```

```

# [DESCRIPTION](#DESCRIPTION)

The **fileevent** command has been superceded by the **chan event** command which supports the same syntax and options.

# [SEE ALSO](#SEE_ALSO)

[chan(n)](/man/os/tcl/chan.n)

7.5 Tcl

---

Document: fileevent(n) from tcl 9.1.0-r0 (Chainguard OS)
Source: https://downloads.sourceforge.net/project/tcl/Tcl/9.1.0/tcl9.1.0-src.tar.gz
