Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here





Hello everyone,
I am a beginner in Tcl/Tk language ,i have some questions:
1- how can i run a script by another solution than source?
2-is there a UNIX tcl/tk free download,i searched a lot with no hope?
3-what is the benefits of using wish than tcl?
4- what is the usage of tk when i use wish?


RE: beginner

Note: UNIX is solaris 10

RE: beginner

i'm a windows user, so im not sure it is the same but:

you can double click on any .tcl file to run it.
wish is a tcl console that lets you use tk
tk is a tcl design package...where u can create and manipulate windows, frames, buttons...etc


RE: beginner

If you mean you didn't find a Tcl/Tk distribution for Solaris, you may try tclkit: http://www.patthoyts.tk/tclkit/

Wish is an application for testing how Tcl works, you don't actually need it to write Tcl scripts.

RE: beginner

First of all, Wish is the Tk shell for Tcl so you do need it for any apps that use Tk (i.e., widgets, GUI,...)

*nix OS's require that the first line of any script be:

or whatever the correct path to the Tcl binaries may be.

Also the file permissions must include "execute" for the user trying to execute the file (Tcl script).  

>chmod 777 <file name>
will do it.

Bob Rashkin

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close