run tcl (please help!)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers run tcl (please help!)
# 1  
Old 07-26-2006
Data run tcl (please help!)

Smilie 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...

Can anybody give me a clue about what's going on?

Thanks!

Pablo

(I know that TCL is installed cause from the root I did a "find . -name '*tcl*' " and I got several directories, with several versions of tcl.... linux2.2 / linux2.4 / etc)

(here after is a result from an "env" in my station...)
SSH_AGENT_PID=3409
SUPPORTED=en_US.UTF-8:en_US:en:fr_FR.UTF-8:fr_FR:fr
HOSTNAME=br8pc118
eclpath=/logiciel/ext_soft/ecl
HOST=br8pc118
SHELL=/bin/tcsh
TERM=xterm
QTDIR=/usr/lib/qt-3.1
LANGVAR=en_US.UTF-8
GROUP=dec
USER=cordoba
LD_LIBRARY_PATH=/logiciel/ext_soft/ecl/2005a_1/lib/linux
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36Smiliei=40;33:so=00;35:bd=40;33;01:cd=40;33;01Smilier=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SSH_AUTH_SOCK=/tmp/ssh-ZnjY3406/agent.3406
HOSTTYPE=i386-linux
USERNAME=cordoba
PATH=.:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/bin/X11:/usr/local/java/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/X11R6/bin:/netappgb/COM/Linux/i686/bin
PWD=/proj/EZZAOUIA/RESERVOIR/OFFICE
XMODIFIERS=@im=none
LANG=en_US.UTF-8
LAMHELPFILE=/etc/lam/lam-helpfile
MACHINE=LINUX
LM_LICENSE_FILE=1700@saturne
GDMSESSION=Default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=2
HOME=/users/DEC/cordoba
OSTYPE=linux
VENDOR=intel
MACHTYPE=i386
LOGNAME=cordoba
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
XAUTHORITY=/users/DEC/cordoba/.Xauthority
GTK_RC_FILES=/etc/gtk/gtkrc:/users/DEC/cordoba/.gtkrc-1.2-gnome2
SESSION_MANAGER=local/br8pc118:/tmp/.ICE-unix/3406
GNOME_DESKTOP_SESSION_ID=Default
COLORTERM=gnome-terminal
WINDOWID=27637326
# 2  
Old 07-27-2006
But what's the output of "which tclsh"?
# 3  
Old 07-27-2006
the output is:

/usr/bin/tclsh


but I think that in this system, we (regular users) can't execute an script directly (just writing the name of the file and intro).... The same thing is happening with all scripts....

so i'm doing as follow in order to run my scripts:

> tcl filewithscript.tcl

or

> wish filewithscript.tcl

And is running.....

Anyway, thank you for your answer!!!

Have a nice day,

Pablo.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help to explaining a command in run dot tcl

Hi, I'm running a rdt (run dot tcl) command, and come accross this line: alias abc 'set ARGS =(\!*); source home123/abc/$ARGS/setup' What does the command exactly do? Please help. (6 Replies)
Discussion started by: mar85
6 Replies

2. Shell Programming and Scripting

how to run an already made script run against a list of ip addresses solaris 8 question

how to run an already developed script run against a list of ip addresses solaris 8 question. the script goes away and check traffic information, for example check_GE-VLANStats-P3 1.1.1.1 and returns the results ok. how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies

3. 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

4. UNIX for Dummies Questions & Answers

Tcl script wont run in bash shell

Hello I'm having a problem running a TCL script in my new OpenSolaris OS. When I go to the directory containing my script called 'Install' (using the gnome terminal), it doesn't seem to be able to find it even though it lists it i.e. if I type "Inst" and hit tab to complete the word, it... (11 Replies)
Discussion started by: sbsbg
11 Replies

5. UNIX for Dummies Questions & Answers

I'm unable to run Keyed List commands(in ubuntu's terminal and Evolane Tcl Engine)

I'm trying to run these commands (keylset,keylget) but i keep getting a error message "invalid command name "keylset"". I've tried running it on both ubuntu's terminal and also Evolane Tcl Engine. Any idea what could be the problem? (1 Reply)
Discussion started by: abe171
1 Replies

6. 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

7. 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

8. Shell Programming and Scripting

How to run python script from a Tcl script

Hi I have a python script,i need to run this script from a tcl script.Can anyone let me know how to do this (1 Reply)
Discussion started by: nathgopi214
1 Replies

9. 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

10. 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
Login or Register to Ask a Question