[galaxy-user] tool.xml "&>" console redirection within command-tag
p.j.a.cock at googlemail.com
Mon Oct 24 04:05:59 EDT 2011
On Mon, Oct 24, 2011 at 9:01 AM, Appelt, Uwe
<uwe.appelt at nct-heidelberg.de> wrote:
> Dear all,
> that has probably been asked 10e6 times, however, I don't find any comments on how to properly escape special characters in a toolxy.xml. What I want to achieve is the following:
> <command interpreter="bash">$myScript &> $logFile</command>
> where myScript is dynamically created (as part of the configfiles-section) and the logFile is where stderr and stdout should go to. Now the problem is obviously the "&"-character, because it causes the following error-msg on reloading the toolxy.xml:
> ExpatError: not well-formed (invalid token): line 5, column 50
> where the 5/50 refers to the "&"-character. By the way: redirecting either stdout or stderr by specifying just ">" (instead of "&>") works fine.
> I tried a lot of different notations in the meanwhile, but neither something like "\&>" nor "\&>" works. Any suggestions?
> Many thanks in advance and Cheers!
Don't you need to escape both the & and the > characters here? i.e.
&> should work.
More information about the galaxy-user