Posted to tcl by wdp at Tue May 20 15:25:55 GMT 2014view raw
- ...
- set wavefile [lindex $argv 4]
- ...
- set sl [exec sox -D $wavefile]
- send_user $sl
- results in:
- ...
- while executing
- "exec sox -D $wavefile"
- invoked from within
- "set sl [exec sox -D $wavefile]"
- (file "./test.sh" line 19)
- i.e. it DOES NOT intepret $wavefile as variable but as string (it does not use it's contents there should be "exec sox -D /var/www/test.wav" but as the error says it is "exec sox -D $wavefile"