Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a Script in Linux

Status
Not open for further replies.

BigJohnT

Technical User
Jul 29, 2007
2
US
I'm working on some example scrips but can't get them to run in Linux.

A very simple example saved as test.tcl

button .b1 -text "Whatever"
pack .b1 -fill both -expand yes

What else do I need to do to get the test.tcl script to run?

I can run this from a terminal and know the result there now I need to run from a script file for longer program testing.

Thanks
John
 
You need to begin the script with:
#!/usr/local/bin/tcl
or
#!/usr/local/bin/wish
or whatever the LINUX equivalent is

You may also have to make the script executable.


_________________
Bob Rashkin
 
Thanks

That did not work for me but this did

#!/bin/sh
#\
exec wish "$0" "$@"

I don't know why I just copied it from another script that worked...

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top