Is there some way to pass system commands along with command line arguments in Eclipse?
E.g passing out.txt > passout.txt to the command line arg result in the code to process the out.txt file and rest > passout.txt passed to the terminal for creation.
3 Answers
I'm not sure about a general answer, but if you want to forward stdout somewhere you can use an option already present in Run Configuration dialog:

2 Comments
If you only want to redirect the output, the launch configuration dialogs allow this in their last tab, "common", as noted in Jacks answer.
If you want to use input redirection or pipes, you can only use the external tools launcher. Create an external tool configuration and pass the whole command line as one string to the command interpreter, cmd.exe, and pass /c as the first argument. The special syntax of the location tells Eclipse to search the PATH for the program.
Location: ${system_path:cmd.exe}
Arguments: /c echo Hello world>output.txt
1 Comment
cmd.exe is Windows centric, of course this also works on Linux systems, where you would invoke bash in the same way, possible with other arguments.Right click on Eclipse then go to "Run as" Select Run Configurations Then Select Arguments in new Window First window
Second main Window://i.sstatic.net/MqU2f.png