how to run run tcl code in linux ???

Status
Not open for further replies.

Tom2

Full Member level 5
Joined
Nov 11, 2006
Messages
318
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,457
how to run tcl file

I try to write a code in tcl language (in linux).

The problem is that i don't know how to run this code.

Is anyone who can help ??????????????????
 

arabic version of run code

We execute the tcl file by using the command 'source'
as:

source tcl_file

at the tcl prompt.
 

run tcl code

You can also have the following as the first line:
#!/usr/bin/tclsh
# <reset of code>

then specify the name of the script at the command as:
$> ./<scriptName>

Also make sure that the file access attribute of the script include "executable", if not do:
$> chmod +x <scriptName>
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…