O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The send Command

The send command invokes a Tcl command in another application. The general form of the command is:

send options interp arg ?arg...?

The send command behaves like eval; if you give it extra arguments, it concatenates them to form a single command. If your argument structure is important, use list to build the command. Table 40-1 lists the options to send:

Table 40-1. Options to the send command.
-asyncDoes not wait for the remote command to complete.
-displayof windowSends to the application on the same display as window.
--Delimits options from the interp argument. Useful if the interp begins with a dash.

The interp argument is the name of the other application. An application defines its own name when it creates its main window. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required