Tcl_Init(3TCL) Tcl Library Procedures Tcl_Init(3TCL)__________________________________________________________________________________________________________________________________________________NAME
Tcl_Init - find and source initialization script
SYNOPSIS
#include <tcl.h>
int
Tcl_Init(interp)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter to initialize.
_________________________________________________________________DESCRIPTION
Tcl_Init is a helper procedure that finds and source's the init.tcl script, which should exist somewhere on the Tcl library path. On Mac-
intosh systems, it additionally checks for an Init resource and sources the contents of that resource if init.tcl cannot be found.
Tcl_Init is typically called from Tcl_AppInit procedures.
SEE ALSO
Tcl_AppInit, Tcl_Main
KEYWORDS
application, initialization, interpreter
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTcl |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tcl is available on http://opensolaris.org.
Tcl 8.0 Tcl_Init(3TCL)
Check Out this Related Man Page
Tcl_AllowExceptions(3TCL) Tcl Library Procedures Tcl_AllowExceptions(3TCL)__________________________________________________________________________________________________________________________________________________NAME
Tcl_AllowExceptions - allow all exceptions in next script evaluation
SYNOPSIS
#include <tcl.h>
Tcl_AllowExceptions(interp)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which script will be evaluated.
_________________________________________________________________DESCRIPTION
If a script is evaluated at top-level (i.e. no other scripts are pending evaluation when the script is invoked), and if the script termi-
nates with a completion code other than TCL_OK, TCL_ERROR or TCL_RETURN, then Tcl normally converts this into a TCL_ERROR return with an
appropriate message. The particular script evaluation procedures of Tcl that act in the manner are Tcl_EvalObjEx, Tcl_EvalObjv, Tcl_Eval,
Tcl_EvalEx, Tcl_GlobalEval, Tcl_GlobalEvalObj, Tcl_VarEval and Tcl_VarEvalVA.
However, if Tcl_AllowExceptions is invoked immediately before calling one of those a procedures, then arbitrary completion codes are per-
mitted from the script, and they are returned without modification. This is useful in cases where the caller can deal with exceptions such
as TCL_BREAK or TCL_CONTINUE in a meaningful way.
KEYWORDS
continue, break, exception, interpreter
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTcl |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tcl is available on http://opensolaris.org.
Tcl 7.4 Tcl_AllowExceptions(3TCL)
:confused: Hi !!
I'm in a new system, trying to run some old scripts tcl I have.
Tcl is installed (see below), and the OS is linux (see below env).
All my scripts tcl begin with:
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@" 1
But they don't want to run... ... (2 Replies)
Can someone identify what is the problem here?.
no children
while executing
"exp_wait -nowait -i -1"
(procedure "logOptions" line 45)
invoked from within
"logOptions"
(procedure "doExecute" line 98)
invoked from within
"doExecute"
(procedure "main" line 32)
... (7 Replies)
Upto last month my script was working fine,
Now I am getting following error, any one help me?
Tcl_Init failed: Can't find a usable init.tcl in the following directories:
/usr/local/lib/tcl8.0 ./lib/tcl8.0 ./tcl8.0/library ./library
This probably means that Tcl wasn't installed... (0 Replies)
Hi everyone:
I have built a tcl script, this script communicate with an ADA program trough a socket, sending binary data, the sender proc is this one:
The code where im sending info is here:
proc p_send_data { DATA } {
global connection
puts "Sending trough $connection..."
#... (2 Replies)
Hi,
I am just going to start learning perl, but i have about tcl that it is easy. So , i am confused that whether to go for tcl or perl. I am just learning it as my interest, but still in future which one of these will benefit me. Also please guide me about tk, can we make GUI based applications... (4 Replies)
Following error encountered while executing characterizationEngine.tcl
:confused::confused:
$ ./characterizationEngine.tcl
Tcl Client is running Ixia Software version: 5.60
Can't find tclx.tcl in the following directories:
/usr/lib/tclX8.3
/usr/lib/tclX8.3
/usr/lib/tclX8.3... (0 Replies)
I would like to create an array using tcl script which takes in name, id, and marks of many people in 3 subjects.
I would like calculate the total marks of each person and rank them according to their marks.
Taking name as my key for access i want to do sort and rank the person based on highest... (3 Replies)
Discussion started by: Carlton
3 Replies
10. Post Here to Contact Site Administrators and Moderators
Hi ,
I want a tcl script to search a string ignoring whitespaces in a .log file . It should correctly match . The string are as follows
"Output-Maps 1 1 0 0 0" 1
and
Active Intermediate-Maps 0 0 0 ... (1 Reply)
hi all ,
i am trying to link a file with another file present in some other location in tcl shell. This is the way i am doing it
if {} {
file link /data/athena_dev/tanvi/tcl/tanvi.log "/data/athena_dev/tanvi/tanvi.tcl"
}
I am getting the error that /data/athena_dev/tanvi/tcl/ta nvi.log... (1 Reply)
In a tcl script I need to find a way of reading a file, and looking for a phrase ("set myvariable") and putting the word following that into a variable.
I've used a file open, and a while loop with gets to read each line from the file into a variable, and using regexp searched for the item. I'm... (1 Reply)