home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / tcl_447.lzh / TCL / tcl.lzh / tcl / help / send < prev    next >
Text File  |  1990-05-03  |  769b  |  18 lines

  1.  
  2. The send command allows you to send a command to another Tcl program.
  3.  
  4. Usage is 'send programname message...'
  5.  
  6. If programname is the name of a program (the filename of the program when 
  7. it's started) that has called TclaInitPort, your message will be queued
  8. to a message port belonging to the other program, and your program will
  9. wait for that program to reply with a reply message for your program.
  10.  
  11. Note that this command fully preserves Tcl semantics, that is, if the
  12. remote program returns an error, you get an error back (which kills
  13. your command unless you trap it), etc, etc, which is to say that a
  14. 'send bar format "x%sz" "y"' should work exactly the same to your
  15. program (assuming bar exists and is running, etc.) as if you had
  16. executed 'format "x%sz" "y"'.
  17.  
  18.