Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-09-2004, 10:46 AM   #1
Registered: Oct 2004
Posts: 43

Rep: Reputation: 15
How to start a Tcl/Tk script by simply invoking the script file itself ?

Hi folks,

this Q is probably a bit trivial to some of you.
I added "#!/usr/local/bin/wish -f" to the first line of my script and do "chmode 775 filename" to it.

however, I am unable to invoke the file by just typing "filename" in console. I still need to do "wish filename" to start the program.

am I missing something here ?
any help would be greatly appreciated.

Old 10-09-2004, 12:36 PM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
assuming the script is in the working directory.

The directory it's in, is probably not in your PATH environment variable.
Old 10-10-2004, 12:00 PM   #3
Registered: Oct 2004
Posts: 43

Original Poster
Rep: Reputation: 15
now u know how long have i quit programming in linux~~


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
use file content as tcl script parameters powah Linux - General 3 07-16-2005 12:10 PM
Simply copying script BBB Programming 2 03-14-2005 04:53 PM
How to register a Tcl script as a service? vlbaranov Linux - Newbie 2 06-01-2004 11:14 AM
I'm looking for a simply perl script to send mail, when ping down cccc Programming 2 01-12-2004 05:36 AM
Script that appends a file to start of other file amp2000 Programming 8 06-30-2002 10:56 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration