LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to start a Tcl/Tk script by simply invoking the script file itself ? (https://www.linuxquestions.org/questions/programming-9/how-to-start-a-tcl-tk-script-by-simply-invoking-the-script-file-itself-240566/)

cyu021 10-09-2004 09:46 AM

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.


James

Hko 10-09-2004 11:36 AM

Try:
Code:

./filename
assuming the script is in the working directory.

The directory it's in, is probably not in your PATH environment variable.

cyu021 10-10-2004 11:00 AM

thanks...
now u know how long have i quit programming in linux~~


All times are GMT -5. The time now is 09:29 PM.