Class ::tycho::Exec


Inherits: ::tycho::Query - Source File - Contents: itk_options - public methods - public proc
Exec a process, and if there is output, display the output. See $TYCHO/kernel/doc/internals/exec.html for further documentation.

Here is an example of how to use the Exec:

    ::tycho::Exec .x -command {make all}
    .x centerOnScreen
.

Itk_options

-command make
Command to be executed.
-dir
The directory that we should exec from. If the value of this option is {}, then we don't change the current directory. Otherwise, we cd to the value of this option.

Public constructs

Public Methods

execProcess
Execute a process. If there is any output, display it.
getHistory start {end end}
Return the contents of the history buffer, if any.
help
Open a help window.
readOrClose fd
Read from the file descriptor. If we are at the end of file, then close it. It is expected that the name of this method will be passed to fileevent. Note that this should be a protected method, but 'fileevent' calls things in the global scope.

Public Proc

execWidgetIsSupported
Return 1 if the Exec widget will work on the current platform, otherwise return 0.

Index of classes



Author: Christopher Hylands
Version: @(#)Exec.itcl 1.16 12/15/96
Copyright: (c) 1996 The Regents of the University of California.