LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-09-2004, 10:46 AM   #1
cyu021
Member
 
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.


James
 
Old 10-09-2004, 12:36 PM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Try:
Code:
./filename
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
cyu021
Member
 
Registered: Oct 2004
Posts: 43

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


Reply


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


All times are GMT -5. The time now is 07:00 PM.

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