SCO Visual Tcl Reference Guide
Chapter 5, Non-graphical commands
Alphabetical command descriptions
Alphabetical command descriptions
-
alarm(TCLX)
-- send SIGALARM in specified number of seconds
-
append(TCL)
-- append to variable
-
apropos(TCLX)
-- search help descriptions for matching pattern
-
array(TCL)
-- manipulate array variables
-
auto_commands(TCLX)
-- list names of all loadable procedures and commands
-
auto_load(TCLX)
-- attempt to load the specified command from a loadable library
-
auto_load_file(TCLX)
-- source a file, using auto_path as search parameter
-
auto_packages(TCLX)
-- return list of names of all defined packages
-
break(TCL)
-- abort looping command
-
bsearch(TCLX)
-- search open file for match
-
buildpackageindex(TCLX)
-- build index files for package libraries
-
case(TCL)
-- evaluate one of several scripts, depending on a given value
-
catch(TCL)
-- evaluate script and trap exceptional returns
-
catclose(TCLX)
-- close the message catalog specified by cathandle
-
catgets(TCLX)
-- retrieve a message from a message catalog
-
catopen(TCLX)
-- open the specified message catalog
-
cd(TCL)
-- change working directory
-
cequal(TCLX)
-- compare two strings for equality
-
cexpand(TCLX)
-- expand backslash characters in string to actual characters
-
chgrp(TCLX)
-- set group ID for files in specified list
-
chmod(TCLX)
-- set permissions of files in specified list
-
chown(TCLX)
-- set owner of files in specified list
-
chroot(TCLX)
-- change root directory to specified name
-
cindex(TCLX)
-- return character indexed by given expression from string
-
clength(TCLX)
-- return length of string in characters
-
close(TCL)
-- close an open file
-
cmdtrace(TCLX)
-- print trace statement for specified commands
-
commandloop(TCLX)
-- create interactive command loop for Tcl interpreter
-
concat(TCL)
-- join lists together
-
continue(TCL)
-- skip to the next iteration of a loop
-
convertclock(TCLX)
-- convert date string to integer value
-
convert_lib(TCLX)
-- convert a Ousterhout style index file and source files into a package library
-
copyfile(TCLX)
-- copy remainder of file1 to file2
-
crange(TCLX)
-- return a range of characters from string
-
csubstr(TCLX)
-- return a substring of characters from string
-
ctoken(TCLX)
-- parse a token out of a character string
-
ctype(TCLX)
-- test whether characters in a string are of a given class
-
dirs(TCLX)
-- list directories in directory stack
-
dup(TCLX)
-- duplicate an open file
-
echo(TCLX)
-- write to standard input, followed by newline
-
edprocs(TCLX)
-- write named procedures to temporary file, call editor
-
eof(TCL)
-- check for end-of-file condition on open file
-
error(TCL)
-- generate an error
-
eval(TCL)
-- evaluate a Tcl script
-
exec(TCL)
-- invoke subprocess(es)
-
execl(TCLX)
-- replace current program with another, passing arguments in list
-
exit(TCL)
-- end the application
-
expr(TCL)
-- evaluate an expression
-
fcntl(TCLX)
-- set, clear, or return file options
-
file(TCL)
-- manipulate file names and attributes
-
flock(TCLX)
-- create lock on all or part of file
-
flush(TCL)
-- flush buffered output for a file
-
fmtclock(TCLX)
-- convert time integer to readable clock format
-
for(TCL)
-- for loop
-
for_array_keys(TCLX)
-- perform foreach for each key in named array
-
foreach(TCL)
-- iterate over all elements in a list
-
for_file(TCLX)
-- implement loop over contents of a file
-
fork(TCLX)
-- fork the current Tcl process
-
format(TCL)
-- format a string in the style of sprintf
-
for_recursive_glob(TCLX)
-- perform foreach loop over recursively matched files
-
frename(TCLX)
-- renames old path to new path
-
fstat(TCLX)
-- obtain status information on open file
-
funlock(TCLX)
-- remove lock created by flock (TCLX)
-
getclock(TCLX)
-- return current date and time as integer
-
gets(TCL)
-- read a line from a file
-
glob(TCL)
-- return names of files that match patterns
-
global(TCL)
-- access global variables
-
help(TCLX)
-- provide lists of all available help subjects and pages
-
helpcd(TCLX)
-- change the current help subject
-
helppwd(TCLX)
-- display the current help subject
-
history(TCL)
-- manipulate the history list
-
id(TCLX)
-- get, set, convert user, group, process IDs
-
if(TCL)
-- execute scripts conditionally
-
incr(TCL)
-- increment the value of a variable
-
info(TCL)
-- return information about the status of the Tcl interpreter
-
infox(TCLX)
-- return info on application or extended Tcl
-
intersect(TCLX)
-- return the logical intersection of two lists
-
intersect3(TCLX)
-- return the logical intersection of two lists and exceptions
-
join(TCL)
-- create a string by joining together list elements
-
keyldel(TCLX)
-- delete key and value from keyed list
-
keylget(TCLX)
-- return value associated with key from the keyed list in the variable listvar
-
keylkeys(TCLX)
-- return the list of keys in the keyed list in the variable listvar
-
keylset(TCLX)
-- set the value of key in the keyed list contained in the variable listvar
-
kill(TCLX)
-- signal processes found in list
-
lappend(TCL)
-- append list elements onto a variable
-
lassign(TCLX)
-- assign successive elements of a list to specified variables
-
lempty(TCLX)
-- determine if specified list is empty
-
lgets(TCLX)
-- read next Tcl list from file and discard terminating newline
-
lindex(TCL)
-- retrieve an element from a list
-
link(TCLX)
-- create hard or symbolic link between files
-
linsert(TCL)
-- insert elements into a list
-
list(TCL)
-- create a list
-
llength(TCL)
-- count the number of elements in a list
-
lmatch(TCLX)
-- return list entries matching specified pattern
-
loadlibindex(TCLX)
-- load the package library index of a .tlib library file
-
loop(TCLX)
-- high performance loop command for fixed increments
-
lrange(TCL)
-- return one or more adjacent elements from a list
-
lreplace(TCL)
-- replace elements in a list with new elements
-
lrmdups(TCLX)
-- remove duplicate list entries and re-sort
-
lsearch(TCL)
-- see if a list contains a particular element
-
lsort(TCL)
-- sort the elements of a list
-
lvarcat(TCLX)
-- concatenate string to end of specified list
-
lvarpop(TCLX)
-- delete list element indexed by specified variable
-
lvarpush(TCLX)
-- insert string to specified list
-
max(TCLX)
-- return argument with highest numeric value
-
min(TCLX)
-- return argument with lowest numeric value
-
mkdir(TCLX)
-- create specified directories
-
nice(TCLX)
-- change or return process priority
-
open(TCL)
-- open a file
-
pid(TCL)
-- retrieve process ID(s)
-
pipe(TCLX)
-- create a pipe
-
popd(TCLX)
-- pop top directory from directory stack to current directory
-
proc(TCL)
-- create a Tcl procedure
-
profile(TCLX)
-- collect performance profile of Tcl script
-
profrep(TCLX)
-- generate performance report based on profile(TCLX) results
-
pushd(TCLX)
-- push current directory onto directory stack and cd to specified directory
-
puts(TCL)
-- write to a file
-
pwd(TCL)
-- return the current working directory
-
random(TCLX)
-- return pseudo-random positive integer
-
read(TCL)
-- read from a file
-
readdir(TCLX)
-- list contents of specified directory
-
read_file(TCLX)
-- read file and return contents as string
-
recursive_glob(TCLX)
-- return list of recursively-matched files
-
regexp(TCL)
-- match a regular expression against a string
-
regsub(TCL)
-- perform substitutions based on regular expression pattern matching
-
rename(TCL)
-- rename or delete a command
-
replicate(TCLX)
-- replicate string n times
-
return(TCL)
-- return from a procedure
-
rmdir(TCLX)
-- remove specified directories
-
saveprocs(TCLX)
-- save definitions of procedures to named file
-
scan(TCL)
-- parse string using conversion specifiers in the style of sscanf
-
scancontext(TCLX)
-- set scan file context
-
scanfile(TCLX)
-- scan open file starting from current position
-
scanmatch(TCLX)
-- specify Tcl commands to be evaluated when regexp(TCL) is matched by a scanfile
-
searchpath(TCLX)
-- search all directories in the specified path
-
seek(TCL)
-- change the access position for an open file
-
select(TCLX)
-- wait for files to come available or satisfy conditions
-
server_info(TCLX)
-- obtain information about a TCP/IP server
-
server_open(TCLX)
-- open TCP/IP connection to server on specified port
-
set(TCL)
-- read and write variables
-
showproc(TCLX)
-- list definitions of named procedures
-
signal(TCLX)
-- specify action to take when Tcl is signalled by UNIX
-
sleep(TCLX)
-- sleep for specified time in seconds
-
source(TCL)
-- evaluate a file as a Tcl script
-
split(TCL)
-- split a string into a proper Tcl list
-
string(TCL)
-- manipulate strings
-
switch(TCL)
-- evaluate one of several scripts, depending on a given value
-
system(TCLX)
-- execute command via system(S) call
-
sync(TCLX)
-- flush all pending disk output
-
time(TCL)
-- time the execution of a script
-
tell(TCL)
-- return current access position for an open file
-
times(TCLX)
-- list process and child execution times
-
trace(TCL)
-- monitor variable accesses
-
translit(TCLX)
-- change characters in inrange to outrange
-
umask(TCLX)
-- set file creation mode
-
union(TCLX)
-- return logical unique union of two lists
-
unknown(TCL)
-- handle attempts to use non-existent commands
-
unlink(TCLX)
-- delete (unlink) listed files
-
unset(TCL)
-- delete variables
-
uplevel(TCL)
-- execute a script in a different stack frame
-
upvar(TCL)
-- create link to variable in a different stack frame
-
VtAddInput(VTCL)
-- add a callback on file activity (read, write, error)
-
VtAddTimeOut(VTCL)
-- add a timeout callback
-
VtAddWorkProc(VTCL)
-- add a working procedure
-
VtRemoveInput(VTCL)
-- remove add input command for fileID
-
VtRemoveTimeOut(VTCL)
-- remove timeout callback
-
VtRemoveWorkProc(VTCL)
-- remove working procedure
-
wait(TCLX)
-- wait for process created by execl to terminate
-
while(TCL)
-- execute script repeatedly as long as a condition is met
-
write_file(TCLX)
-- write strings to specified file