Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Tcltk, Tcltk DSL Package< Next Oldest | Next Newest >
zakiakhmad Offline





Group: Members
Posts: 29
Joined: July 2007
Posted: Sep. 22 2007,04:28 QUOTE

Hello

I've downloaded and installed the tcltk DSL package from its repository. Then I try to execute the tcltk script which I already made from other distro (Ubuntu). But, I failed to execute my tcltk script on DSL.

I donno how the right way to execute the tcl/tk script on DSL. Any hint?
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Sep. 22 2007,05:08 QUOTE

Load tcltk extension (tcltk-8.4.uci) , and then place as the first line in the code:

#!/opt/tcltk-8.4/bin/wish
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 22 2007,12:17 QUOTE

Just like with shell scripts, there are multiple ways to do it.

1. Do as jpeters suggested (also make the script executable: chmod +x my_script.tcl).
2. Open tclsh or tkcon and run the script from that shell.
3. Open a shell and type "/opt/tcltk-8.4/bin/wish my_script.tcl"
4. Add /opt/tcltk-8.4/bin to PATH, open a shell, and type "wish my_script.tcl"
5. Create a desktop icon or menu item with the command in #3

I believe that adding the /opt/tcltk-8.4/bin directory to PATH saves a lot of future effort, if you plan to run other scripts.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
2 replies since Sep. 22 2007,04:28 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Tcltk

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code