zRedirect
Usage Documentation

This is usage documentation for for the zRedirect system (version 0.99). Executable source code has been placed in the public domain. You can find it with an annotated description. Both this usage documentation and the annotated description are copyrighted J. Adrian Zimmer, 2000.

Redirecting Standard Input and Output within an Interpreter

If you want to start a slave interpreter whose standard input and output are redirected to the files or TCP channels of your choice, then zRedirect::setup is for you. You have the freedom to do this within Tcl without starting another process. The only serious restriction is that any TCP channely you redirect this way must be put in blocking and line buffered mode. This is not always what you want but it is consistent with the idea that your slave interpreter will run a script to completion using the standard input and output you provide for it.

Usage Described

zRedirect::setup Slave ?-stdin IN? ?-stdout OUT?

Requirements

This script needs to source the following script:

zproc

These scripts will be automatically sourced.

This script requires Tcl 8.0 or higher.

Related to Tcl/Tk for Programmers
Jul 30, 2000