home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 488.lha / TCL_alpha2 / tcl.lzh / tcl / docs / tcla / amigados.doc next >
Encoding:
Text File  |  1990-05-04  |  755 b   |  26 lines

  1.  
  2.  
  3. Tcla AmigaDOS Functions
  4. -----------------------
  5.  
  6. "exec" takes a command and optional arguments and executes them 
  7. through a CLI.  It grabs the standard output and error of the 
  8. command and returns it as a string result to the caller.
  9.  
  10. Thus,
  11.  
  12.     set a [dir df0:]
  13.  
  14. Would set the variable a to the data output by "dir df0:"
  15.  
  16.  
  17. The second command is "run."  run works just like "exec", except
  18. that the CLI command run by run has it's output go to the standard 
  19. output of the tcl interpreter that executes it, which at this time
  20. would be a CLI window.
  21.  
  22. These routines uses temporary files it creates and deletes in the T:
  23. directory.  It uses the prefixes of "TCLI" and "TCLO" and constructs
  24. the filenames including the program name to try to make them unique.
  25.  
  26.