Posted to tcl by wdp at Tue May 20 15:25:55 GMT 2014view raw

  1. ...
  2.  
  3. set wavefile [lindex $argv 4]
  4.  
  5. ...
  6.  
  7. set sl [exec sox -D $wavefile]
  8. send_user $sl
  9.  
  10.  
  11. results in:
  12.  
  13. ...
  14.  
  15. while executing
  16. "exec sox -D $wavefile"
  17. invoked from within
  18. "set sl [exec sox -D $wavefile]"
  19. (file "./test.sh" line 19)
  20.  
  21. 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"