home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1995
- #
- # File : @(#)watchdog.tcl /main/titanic/1
- # Author : Marcel Bancken
- # Description : Instantiation of Watchdog
- #
- #---------------------------------------------------------------------------
- # SccsId = @(#)watchdog.tcl /main/titanic/1 23 Oct 1997 Copyright 1995 Westmount Technology
-
- source [m4_path_name tcl libocl.tcl]
-
- require platform.tcl
- require procs.tcl
- require messagehdl.tcl
- require clwatchdog.tcl
-
- # on windows we can always give msgs in ErrorDialogs
- if $win95 {
- OtkRegister::gui
- }
-
- if {[llength $argv] != 3} {
- puts stderr "Watchdog requires 3 arguments: <interp> <script> <endScript>"
- exit 1
- }
- ClWatchdog new .watchdog \
- -interp [lindex $argv 0] \
- -script [lindex $argv 1] \
- -endScript [lindex $argv 2]
- set returnValue [.watchdog execute]
- exit $returnValue
-