Debian Codegraph @

info/gcl-tk/send.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>send (GCL TK Manual)</title>
7
8 <meta name="description" content="send (GCL TK Manual)">
9 <meta name="keywords" content="send (GCL TK Manual)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="wm.html#SEC_Contents" rel="contents" title="Table of Contents">
15 <link href="Control.html" rel="up" title="Control">
16 <link href="tk.html" rel="next" title="tk">
17 <link href="selection.html" rel="prev" title="selection">
18 <style type="text/css">
19 <!--
20 a.summary-letter {text-decoration: none}
21 blockquote.indentedblock {margin-right: 0em}
22 div.display {margin-left: 3.2em}
23 div.example {margin-left: 3.2em}
24 div.lisp {margin-left: 3.2em}
25 kbd {font-style: oblique}
26 pre.display {font-family: inherit}
27 pre.format {font-family: inherit}
28 pre.menu-comment {font-family: serif}
29 pre.menu-preformatted {font-family: serif}
30 span.nolinebreak {white-space: nowrap}
31 span.roman {font-family: initial; font-weight: normal}
32 span.sansserif {font-family: sans-serif; font-weight: normal}
33 ul.no-bullet {list-style: none}
34 -->
35 </style>
36
37
38 </head>
39
40 <body lang="en">
41 <span id="send"></span><div class="header">
42 <p>
43 Next: <a href="tk.html" accesskey="n" rel="next">tk</a>, Previous: <a href="selection.html" accesskey="p" rel="prev">selection</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> &nbsp; [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
44 </div>
45 <hr>
46 <span id="send-1"></span><h3 class="section">3.18 send</h3>
47
48 <p>send \- Execute a command in a different interpreter
49 </p><span id="Synopsis-31"></span><h4 class="unnumberedsubsec">Synopsis</h4>
50 <p><b>send </b><i>interp cmd </i><span class="roman">?</span><i>arg arg ...</i>?
51 </p>
52 <span id="Description-29"></span><h4 class="unnumberedsubsec">Description</h4>
53
54 <p>This command arranges for <i>cmd</i><span class="roman"> (and </span><i>arg</i>s) to be executed in the
55 interpreter named by <i>interp</i>. It returns the result or
56 error from that command execution. <i>Interp</i> must be the
57 name of an interpreter registered on the display associated with
58 the interpreter in which the command is invoked; it need not
59 be within the same process or application. If no <i>arg</i>
60 arguments are present, then the command to be executed is
61 contained entirely within the <i>cmd</i> argument. If one or
62 more <i>arg</i>s are present, they are concatenated to form the
63 command to be executed, just as for the <b>eval</b> Tcl command.
64 </p>
65 <span id="Security"></span><h4 class="unnumberedsubsec">Security</h4>
66
67 <p>The <b>send</b> command is potentially a serious security loophole,
68 since any application that can connect to your X server can send
69 scripts to your applications.
70 These incoming scripts can use Tcl to read and
71 write your files and invoke subprocesses under your name.
72 Host-based access control such as that provided by <b>xhost</b>
73 is particularly insecure, since it allows anyone with an account
74 on particular hosts to connect to your server, and if disabled it
75 allows anyone anywhere to connect to your server.
76 In order to provide at least a small amount of
77 security, Tk checks the access control being used by the server
78 and rejects incoming sends unless (a) <b>xhost</b>-style access control
79 is enabled (i.e. only certain hosts can establish connections) and (b) the
80 list of enabled hosts is empty.
81 This means that applications cannot connect to your server unless
82 they use some other form of authorization
83 such as that provide by <b>xauth</b>.
84 </p>
85 <span id="Keywords-32"></span><h4 class="unnumberedsubsec">Keywords</h4>
86 <p>interpreter, remote execution, security, send
87 </p><hr>
88 <div class="header">
89 <p>
90 Next: <a href="tk.html" accesskey="n" rel="next">tk</a>, Previous: <a href="selection.html" accesskey="p" rel="prev">selection</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> &nbsp; [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
91 </div>
92
93
94
95 </body>
96 </html>