Sponsored Content
Full Discussion: TCL in Linux
Operating Systems Linux TCL in Linux Post 302127479 by rvan on Wednesday 18th of July 2007 06:57:54 AM
Old 07-18-2007
oops..
am really sorry for my previous reply regarding TCL..
since i was working in windows and connect to Linux server from my m/c i made the mistake of including TCL from C:\ absent mindedly....

I will see if TCL is available.

Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

TCL/TK - Help Guys

Hi Folks, I would like to know something abt TCL/TK. For those who dont know the expansion of it...here it goes TCL - Tool Command Language and TK - Tool Kit.. It can be used to write shell scripts, application programs using TCL and gui applns using TK. For unix, we write tclsh shell... (4 Replies)
Discussion started by: Nisha
4 Replies

2. Shell Programming and Scripting

TK/TCL Help

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

3. Shell Programming and Scripting

Help with Tcl...

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

4. Shell Programming and Scripting

TCL, how to

Does any one know how to capture the output of command called from a TCL script? I cannot figure this out. I've been working on it for 4 hours now :confused: (2 Replies)
Discussion started by: Lorna
2 Replies

5. Shell Programming and Scripting

Need your help - tcl

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

6. UNIX for Advanced & Expert Users

Please help me in tcl/tk

i am new one to tcl/tk OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh tclsh tclsh8.4 OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh % wish Application initialization failed: no display name and no $DISPLAY environment variable when i give like that i am getting error Application... (0 Replies)
Discussion started by: ponmuthu
0 Replies

7. Red Hat

How to install expect after installing tcl on Redhat Linux

Hi, I have install tcl and then expect but I am getting below ouput while trying which expect which expect /usr/bin/which: no expect in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin) I have copied both in... (6 Replies)
Discussion started by: manish_1678
6 Replies

8. Shell Programming and Scripting

help in tcl...

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

9. Programming

TCL/TK packing

I have a program started on a 640x480 canvas with button/labels down the left side. I want to put a circle in the middle but am drawing a blank whether to add it after the left buttons or to wait until I can add more buttons/labels on the right because I can't remember how to get such packed on... (5 Replies)
Discussion started by: slak0
5 Replies

10. Shell Programming and Scripting

Looking for an alternative to Tcl

I've created quite a collection of tcl scripts which have buttons, radio buttons, check boxes, text fields, etc. These tcl scripts in turn call and execute several hundred sh, csh, bash, perl scripts and pass in the args based on the gui selections on the same and other redhat machines. We're... (4 Replies)
Discussion started by: scottwevans
4 Replies
Handles(TCL)															      Handles(TCL)

NAME
Tcl_HandleAlloc, Tcl_HandleFree, Tcl_HandleTblInit, Tcl_HandleTblRelease, Tcl_HandleTblUseCount, Tcl_HandleWalk, Tcl_HandleXlate - Dynamic, handle addressable tables. SYNOPSIS
#include <tclExtend.h> void_pt Tcl_HandleTblInit (const char *handleBase, int entrySize, int initEntries); int Tcl_HandleTblUseCount (void_pt headerPtr, int amount); void Tcl_HandleTblRelease (void_pt headerPtr); void_pt Tcl_HandleAlloc (void_pt headerPtr, char *handlePtr); void_pt Tcl_HandleXlate (Tcl_Interp *interp, void_pt headerPtr, const char *handle); void_pt Tcl_HandleWalk (void_pt headerPtr, int *walkKeyPtr); void Tcl_WalkKeyToHandle (void_pt headerPtr, int walkKey, char *handlePtr); void Tcl_HandleFree (void_pt headerPtr, void_pt entryPtr); DESCRIPTION
The Tcl handle facility provides a way to manage table entries that may be referenced by a textual handle from Tcl code. This is provided for applications that need to create data structures in one command, return a reference (i.e. pointer) to that particular data structure and then access that data structure in other commands. An example application is file handles. A handle consists of a base name, which is some unique, meaningful name, such as `file' and a numeric value appended to the base name (e.g. `file3'). The handle facility is designed to provide a standard mechanism for building Tcl commands that allocate and access table entries based on an entry index. The tables are expanded when needed, consequently pointers to entries should not be kept, as they will become invalid when the table is expanded. If the table entries are large or pointers must be kept to the entries, then the the entries should be allocated separately and pointers kept in the handle table. A use count is kept on the table. This use count is intended to determine when a table shared by multiple commands is to be release. Tcl_HandleTblInit Create and initialize a Tcl dynamic handle table. The use count on the table is set to one. Parameters: o handleBase - The base name of the handle, the handle will be returned in the form "baseNN", where NN is the table entry number. o entrySize - The size of an entry, in bytes. o initEntries - Initial size of the table, in entries. Returns: A pointer to the table header. Tcl_HandleTblUseCount Alter the handle table use count by the specified amount, which can be positive or negative. Amount may be zero to retrieve the use count. Parameters: o headerPtr - Pointer to the table header. o amount - The amount to alter the use count by. Returns: The resulting use count. Tcl_HandleTblRelease Decrement the use count on a Tcl dynamic handle table. If the count goes to zero or negative, then release the table. Parameters: o headerPtr - Pointer to the table header. Tcl_HandleAlloc Allocate an entry and associate a handle with it. Parameters: o headerPtr - A pointer to the table header. o handlePtr - Buffer to return handle in. It must be big enough to hold the name. Returns: A pointer to the allocated entry (user part). Tcl_HandleXlate Translate a handle to a entry pointer. Parameters: o interp - A error message may be returned in result. o headerPtr - A pointer to the table header. o handle - The handle assigned to the entry. Returns: A pointer to the entry, or NULL if an error occurred. Tcl_HandleWalk Walk through and find every allocated entry in a table. Entries may be deallocated during a walk, but should not be allocated. Parameters: o headerPtr - A pointer to the table header. o walkKeyPtr - Pointer to a variable to use to keep track of the place in the table. The variable should be initialized to -1 before the first call. Returns: A pointer to the next allocated entry, or NULL if there are not more. Tcl_WalkKeyToHandle Convert a walk key, as returned from a call to Tcl_HandleWalk into a handle. The Tcl_HandleWalk must have succeeded. Parameters: o headerPtr - A pointer to the table header. o walkKey - The walk key. o handlePtr - Buffer to return handle in. It must be big enough to hold the name. Tcl_HandleFree Frees a handle table entry. Parameters: o headerPtr - A pointer to the table header. o entryPtr - Entry to free. Tcl Handles(TCL)
All times are GMT -4. The time now is 10:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy