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
Post a Comment