Hi there,
I'm having trouble passing a string containing a valid command using <<, e.g.:
In[170]:= <<"!echo hello world"
Out[170]= hello world
In[171]:= myCmdStr = "\"!echo hello world\""
Out[171]= "!echo hello world"
In[172]:= <<myCmdStr
Get::noopen: Cannot open myCmdStr.
Out[172]= $Failed
Is there a way to make this work? I would like to assemble a string with configurable parameters as input to an external command, execute and then get the return value. Perhaps there is a more elegant solution?
Thanks in advance!