home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
systemutil.tcl
< prev
next >
Wrap
Text File
|
1996-11-21
|
2KB
|
71 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)systemutil.tcl /main/hindenburg/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)systemutil.tcl /main/hindenburg/2 21 Nov 1996 Copyright 1994 Westmount Technology
# Start user added include file section
require platform.tcl
# End user added include file section
# Machine dependent functions.
Class SystemUtilities : {Object} {
constructor
method destructor
}
constructor SystemUtilities {class this name} {
set this [Object::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method SystemUtilities::destructor {this} {
# Start destructor user section
# End destructor user section
}
# Return the command separator.
#
proc SystemUtilities::cmdSeparator {} {
return ";"
}
# Start a wictk executable with file 'name'.tcl in
# the background.
#
proc SystemUtilities::fork {interp name args} {
if [catch {set exe [m4_path_name bin $interp$EXE_EXT]} reason] {
wmtkerror $reason
return
}
if [catch {set script [m4_path_name tcl $name.tcl]} reason] {
wmtkerror $reason
return
}
set cmd "[quoteIf $exe] [quoteIf $script]"
if {"$args" == ""} {
system "$cmd &"
} else {
append cmd " --"
foreach arg $args {
append cmd " \"$arg\""
}
system "$cmd&"
}
}
# Do not delete this line -- regeneration end marker