0

Now I'm working on the command, Mafft.

This command's usage is like below.

mafft in > out

as you can see, command line contains redirection operator.

This command line on windows os, it works.
This command line on linux shell prompt input directly, it works.

But if I run it through java Runtime().getRuntime().exec("command string", null), it gives me nothing but errors below.

Unknown option: /home/test/msa.txt
Unknown option: >

Is there any way to use redirection operator in command line?

Duxx Lee
  • 1
  • 2
  • possible duplicate of [Redirection with Runtime.getRuntime().exec() doesn't work](http://stackoverflow.com/questions/3130787/redirection-with-runtime-getruntime-exec-doesnt-work) – Jae Heon Lee Sep 05 '14 at 09:30
  • No, that is about to make redirection work. But my case is about using redirection character only. I don't need redirection. – Duxx Lee Sep 05 '14 at 10:06

0 Answers0