home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / tcl / tk3.3b1 / doc / send.n < prev    next >
Encoding:
Text File  |  1993-04-26  |  3.0 KB  |  70 lines

  1. '\"
  2. '\" Copyright (c) 1990 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/wish/man/RCS/send.n,v 1.6 93/04/26 16:32:07 ouster Exp $ SPRITE (Berkeley)
  22. '/" 
  23. .so man.macros
  24. .HS send tk
  25. .BS
  26. '\" Note:  do not modify the .SH NAME line immediately below!
  27. .SH NAME
  28. send \- Execute a command in a different interpreter
  29. .SH SYNOPSIS
  30. \fBsend \fIinterp cmd \fR?\fIarg arg ...\fR?
  31. .BE
  32.  
  33. .SH DESCRIPTION
  34. .PP
  35. This command arranges for \fIcmd\fR (and \fIarg\fRs) to be executed in the
  36. interpreter named by \fIinterp\fR.  It returns the result or
  37. error from that command execution.  \fIInterp\fR must be the
  38. name of an interpreter registered on the display associated with
  39. the interpreter in which the command is invoked;  it need not
  40. be within the same process or application.  If no \fIarg\fR
  41. arguments are present, then the command to be executed is
  42. contained entirely within the \fIcmd\fR argument.  If one or
  43. more \fIarg\fRs are present, they are concatenated to form the
  44. command to be executed, just as for the \fBeval\fR Tcl command.
  45.  
  46. .SH SECURITY
  47. .PP
  48. .VS
  49. The \fBsend\fR command is potentially a serious security loophole,
  50. since any application that can connect to your X server can send
  51. scripts to your applications.
  52. These incoming scripts can use Tcl to read and
  53. write your files and invoke subprocesses under your name.
  54. Host-based access control such as that provided by \fBxhost\fR
  55. is particularly insecure, since it allows anyone with an account
  56. on particular hosts to connect to your server, and if disabled it
  57. allows anyone anywhere to connect to your server.
  58. In order to provide at least a small amount of
  59. security, Tk checks the access control being used by the server
  60. and rejects incoming sends unless (a) \fBxhost\fR-style access control
  61. is enabled (i.e. only certain hosts can establish connections) and (b) the
  62. list of enabled hosts is empty.
  63. This means that applications cannot connect to your server unless
  64. they use some other form of authorization
  65. such as that provide by \fBxauth\fR.
  66. .VE
  67.  
  68. .SH KEYWORDS
  69. interpreter, remote execution, security, send
  70.