LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 09: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, 11:36 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
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, 11:00 AM   #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



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 11:10 AM
Simply copying script BBB Programming 2 03-14-2005 03:53 PM
How to register a Tcl script as a service? vlbaranov Linux - Newbie 2 06-01-2004 10:14 AM
I'm looking for a simply perl script to send mail, when ping down cccc Programming 2 01-12-2004 04:36 AM
Script that appends a file to start of other file amp2000 Programming 8 06-30-2002 09:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration