using run. Is the only way to do this one of the cumbersome options discussed here?
(meaning using pipeline etc?) Or is there a simple alternative? I do not need even to store the output of the command in the section, just run it as an external command.
That does not work for the command I am actually trying to run (instead of grep), probably because some difference related to how it outputs the data.
What is working is this:
using Supressor
output = @capture_out run(pipeline(`cat processed.top`,`plumed partial_tempering $(λ[i+1])`))
open("$out/topology.top","w") do io
write(io, output)
end
Maybe someone who understands what this capture does might have any idea of what is going on.
Nobody invented a macro like:
@sh grep AA < box.inp > box.out
to just call a shell? Given that ; gets one into a shell where that works, seems feasible, isn’t it?