Name

send

send [options] string

Send a string to a spawned process.

Options

--

Indicate the end of options.

-i spawn_id

Send the string to the specified spawn ID.

-raw

Disable the translation of newline to return-newline when sending to the user terminal.

-null num

Send num null characters (one if num is omitted).

-break

Send a break character (applicable only for terminal devices).

-s

Send output slowly using the settings of the send_slow variable.

-h

Send output, like a human typing, using the settings of the send_human variable.

Note that send conflicts with the Tk command of the same name. Use exp_send instead.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.