Hi,
This redirect is using input.txt for anything that the command tries to read _after_ it starts, and it not being used to set the options. What you want instead is:
design_ttest2 `cat input.txt`
All the best,
Mark
On 4 Jul 2013, at 16:38, "Watson, Christopher" <[log in to unmask]> wrote:
> When using that kind of redirection, it is telling the command to read from stdin using the contents of the file. It might treat that whole line as one string, and not 3 separate arguments.
> Why not just run the command on the command line? It's simpler.
>
> ________________________________________
> From: FSL - FMRIB's Software Library [[log in to unmask]] on behalf of Oskar W [[log in to unmask]]
> Sent: Thursday, July 04, 2013 8:29 AM
> To: [log in to unmask]
> Subject: [FSL] FSL - read input from files instead of command line
>
> Hi all,
>
> I am using the FSL command design_ttest2 to setup a non-paired two group t-test. Now, I would like to use an input file for this, for example a simple input.txt file with the following single line of text:
>
> design 10 20
>
> However, when I try the command
>
> $ design_ttest2 < input.txt
>
> nothing happens. How can I get FSL commands to read input from other than the command line?
>
> Kind regards,
>
> Oskar W
> M. Sc. Eng. Phys.
|