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_SourceRCFile(3TCL) Tcl Library Procedures Tcl_SourceRCFile(3TCL)__________________________________________________________________________________________________________________________________________________NAME
Tcl_SourceRCFile - source the Tcl rc file
SYNOPSIS
#include <tcl.h>
void
Tcl_SourceRCFile(interp)
ARGUMENTS
Tcl_Interp *interp (in) Tcl interpreter to source rc file into.
_________________________________________________________________DESCRIPTION
Tcl_SourceRCFile is used to source the Tcl rc file at startup. It is typically invoked by Tcl_Main or Tk_Main. The name of the file
sourced is obtained from the global variable tcl_rcFileName in the interpreter given by interp. If this variable is not defined, or if the
file it indicates cannot be found, no action is taken.
On the Macintosh, after sourcing the rc file, this function will additionally source the TEXT resource indicated by the global variable
tcl_rcRsrcName in interp.
KEYWORDS
application-specific initialization, main program, rc file
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.3 Tcl_SourceRCFile(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)