No no, @Tony got it right. I'm sorry I was so unclear. Thanks Tony, what you suggest is to interpolate the code parts as strings into the Cmd. That works. Thanks both of you!
Yakir Gagnon The Queensland Brain Institute (Building #79) The University of Queensland Brisbane QLD 4072 Australia cell +61 (0)424 393 332 work +61 (0)733 654 089 On Mon, Apr 27, 2015 at 5:09 PM, Tomas Lycken <[email protected]> wrote: > I think the question is rather if it’s possible to somehow do > > a = `echo 'hello world'` > b = `echo "$pi" > run(a) > run(b) > > but with only *one* call to run. > > // T > > On Monday, April 27, 2015 at 8:58:55 AM UTC+2, Tony Kelman wrote: > > Maybe * concatenation should be implemented for Cmd like it is for >> strings, not sure why it isn't. But you can do interpolation: >> >> julia> a = `echo`; b = `hello`; c = `world`; >> julia> `$a $b $c` >> `echo hello world` >> julia> run(`$a $b $c`) >> hello world >> >> >> On Sunday, April 26, 2015 at 8:23:47 PM UTC-7, Yakir Gagnon wrote: >>> >>> I'm using Julia to build a imagemagick command (for a complicated gif). >>> I'm using a for loop to build the many frames for the gif. This means I end >>> up with an Array of Cmds where the first element is some header (i.e. >>> `convert -delay 1 -size $(w)x$h xc:black -antialias`), then come the >>> frames, and last some closing stuff. >>> I wish I then could just join the commands and run it. But join doesn't >>> work on the Cmd type. >>> >>> How can I build a Cmd from many parts? >>> >>> Thanks! >>> >> >
