tcl/tk: #!/usr/bin/wish in a script file does not start wish

When executing a tcl/tk script file, 'wish' does not execute the tcl/tk commands in the file.
Instead I get error messages: "command not found" from tcsh for every tcl/tk command in the file. I use tcsh as login shell.
The first line in the script file is: #!/usr/bin/wish. The program is at this place.
Starting 'wish' with my tcl/tk file as argument works fine.
Starting the wish.app and "sourcing" the script file works fine.

jo

iBook G4, Mac OS X (10.4.3)

Posted on Dec 1, 2005 4:04 AM

Reply
7 replies

Dec 2, 2005 2:12 AM in response to James Hober

Thanks for the hints so far.

I posted the file at
www.jokern.de/led.tk.sit

I used Disk Utility to repair permissions on my disk.
I used bash shell to start the script.
I used "chmod" to play with permissions of the file.
I used sudo to execute the file.
Didn't help.


Again executing:

wish led.tk !works just fine
./led.tk !does not work

Dec 2, 2005 11:08 AM in response to Daniel Macks

Thanks for the help so far.

Using
/usr/bin/wish led.tk

works.

using
./led.tk

does not even start wish. I checked with Activity Monitor.

Below are my "wishes", the first one is actually a link to wish4.8.

ls /usr/bin/wi*


wish
wish8.4
wish8.4-X11
wish8.4.7
wish8.5


But I am one step closer.
Starting X11.app and starting my script in an xterm and using
'#!/usr/bin/wish8.4-X11'
in the script works.
Using
#!/usr/bin/wish8.4
has still the same symptoms. For me it looks like a bug. I wonder if anybody can verify on MacOS 10.4.3

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

tcl/tk: #!/usr/bin/wish in a script file does not start wish

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.