Tcl: Special characters in 'exec' command -


here's imagemagick command retrieving pixel values image foo.tiff:

convert foo.tiff [1x1+40+30] -format %[fx:int(65535*r)],%[fx:int(65535*g)],%[fx:int(65535*b)] info:- 

how format make acceptable tcl 'exec' command? i've tried variety of escaping various characters, enclosing in braces, , on. appreciate advice...

tcl right thing if split string list:

set cmd {convert foo.tiff [1x1+40+30] -format %[fx:int(65535*r)],%[fx:int(65535*g)],%[fx:int(65535*b)] info:-} exec {*}[split $cmd] 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -