home *** CD-ROM | disk | FTP | other *** search
-
-
- Tcla AmigaDOS Functions
- -----------------------
-
- "exec" takes a command and optional arguments and executes them
- through a CLI. It grabs the standard output and error of the
- command and returns it as a string result to the caller.
-
- Thus,
-
- set a [dir df0:]
-
- Would set the variable a to the data output by "dir df0:"
-
-
- The second command is "run." run works just like "exec", except
- that the CLI command run by run has it's output go to the standard
- output of the tcl interpreter that executes it, which at this time
- would be a CLI window.
-
- These routines uses temporary files it creates and deletes in the T:
- directory. It uses the prefixes of "TCLI" and "TCLO" and constructs
- the filenames including the program name to try to make them unique.
-
-