home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
systemutil.tcl
< prev
next >
Wrap
Text File
|
1997-07-21
|
2KB
|
77 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)systemutil.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)systemutil.tcl /main/titanic/4 21 Jul 1997 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\""
}
if [isCommand ORB::currentProcessId] {
m4_var set M4_parent_pid [ORB::currentProcessId]
}
system "$cmd&"
if [isCommand ORB::currentProcessId] {
m4_var set M4_parent_pid ""
}
}
}
# Do not delete this line -- regeneration end marker