10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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)
Discussion started by: hiten.r.chauhan
0 Replies
2. Shell Programming and Scripting
how can i make a list with the n last files and their details in tcl?..
thanks. (0 Replies)
Discussion started by: eee
0 Replies
3. Shell Programming and Scripting
I have a TCL script that logs into a switch using expect.I send a command "show port-security address" and it returns a table having a large number of rows.I need to capture this output(the table) and store it in a .txt file.
I have done this:
match_max 5000
set expect_out(buffer) {}
set... (0 Replies)
Discussion started by: plasmalightwave
0 Replies
4. Shell Programming and Scripting
Hello everyone:
I have a script that writes and read DATA in/from a socket, but i have a great problem while writing.
My socket is created in this way:
set connection
fconfigure $connection -encoding binary -translation binary -blocking 1
And the writer procedure is this one:
... (0 Replies)
Discussion started by: trutoman
0 Replies
5. Shell Programming and Scripting
I'm trying to write a script that will do the following:
Open a text file for reading/writing.
Read each line.
When I find a specfic value in a line, append something to the end of that line.
I loop through and read all the lines in myfile.txt looking for dev123_data_log and find a... (5 Replies)
Discussion started by: progkcp
5 Replies
6. Shell Programming and Scripting
Hello,
Can someone explaine me the meaning of this program:
#! /usr/bin/tclsh
set mctal
set a
set b
set c
set d
set e
while {! line cell]} {
}
while {! line]} {
}
while {! line cell]} {
}
while {! line]} {
} (0 Replies)
Discussion started by: jolecanard
0 Replies
7. Programming
Hi,
Im working with client side Tcl implementation on unix box of web services, to login to a tool with web service method written in C# on windows box and it is accessed by its link from the browser on unix box.
Sorry that i have hidden the original names for security reasons.
Using... (0 Replies)
Discussion started by: SankarV
0 Replies
8. Shell Programming and Scripting
Hello Tcl Experts,
set i 0
while { $i < 10 } {
puts "$i"
incr i
}
I am trying to print the value of "i" at the same place. i.e. it should first print "1", then in next iteration print "2" over the location of "1" and so on.... (i.e. in every iteration, delete the previous number and... (2 Replies)
Discussion started by: sumitgarg
2 Replies
9. Shell Programming and Scripting
can someone tell my why the puts is not reflecting the variable?
CUT -->
set fp
while {-1 != } {
button .a${line} -text "${line} " -width 20 -command {
puts $line
}
pack .a${line}
} (0 Replies)
Discussion started by: hpuxrox
0 Replies
10. UNIX for Advanced & Expert Users
running solaris 2.5.1 on a sparc5, with less than 12 users runnign compilers, gui's, really not a heavy load on it however, sometimes, not always, when users run diff, or sdiff or a .tcl script, the computer locks up. One time right before everything froze, I noticed in top, that the sdiff process... (2 Replies)
Discussion started by: kymberm
2 Replies
source(1T) Tcl Built-In Commands source(1T)
__________________________________________________________________________________________________________________________________________________
NAME
source - Evaluate a file or resource as a Tcl script
SYNOPSIS
source fileName
source -rsrc resourceName ?fileName?
source -rsrcid resourceId ?fileName?
_________________________________________________________________
DESCRIPTION
This command takes the contents of the specified file or resource and passes it to the Tcl interpreter as a text script. The return value
from source is the return value of the last command executed in the script. If an error occurs in evaluating the contents of the script
then the source command will return that error. If a return command is invoked from within the script then the remainder of the file will
be skipped and the source command will return normally with the result from the return command.
The end-of-file character for files is '32' (^Z) for all platforms. The source command will read files up to this character. This |
restriction does not exist for the read or gets commands, allowing for files containing code and data segments (scripted documents). If |
you require a ``^Z'' in code for string comparison, you can use `` 32'' or ``u001a'', which will be safely substituted by the Tcl inter- |
preter into ``^Z''.
The -rsrc and -rsrcid forms of this command are only available on Macintosh computers. These versions of the command allow you to source a
script from a TEXT resource. You may specify what TEXT resource to source by either name or id. By default Tcl searches all open resource
files, which include the current application and any loaded C extensions. Alternatively, you may specify the fileName where the TEXT
resource can be found.
EXAMPLE
Run the script in the file foo.tcl and then the script in the file bar.tcl:
source foo.tcl
source bar.tcl
Alternatively:
foreach scriptFile {foo.tcl bar.tcl} {
source $scriptFile
}
SEE ALSO
file(1T), cd(1T), info(1T)
KEYWORDS
file, script
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 source(1T)