execute shell command inside of tcl file
i have shell script in .tcl(include snack package) like this:
#!/bin/sh
# the next line restarts using wish \
exec wish8.3 "$0" "$@"
ls
package require snack
snack::sound snd
snd read ex1.wav
snd write ex1.au
exit
there is something error whe i execute them :
Error in startup script: invalid command name "ls"
while executing
"ls"
(file "./coba.tcl" line 4)
why?
|