I think I understand what may be going on. When moving from using the command line to writing scripts, you need to first get the conception of flow statements. It sounds like you may want to make use of a for loop. the script should read something like:
save the script. make the file executable for at least yourself chmod -744 myscript.sh. run in terminal where you saved script with ./myscript.sh
I apologize for not being more clear. The exact command line options for use with feat are not exactly clear. Every scientist seems to be simplifying the process with guis and pre-written scripts. Someone wise stays close to their data, especially since it insures reliability and quality control. I quietly object to this practice of letting users circumvent having a knowledge of basic programming before analyzing data. Do not get me wrong, though, they do this with kindness. Becoming even moderately fluent with programming took me years, so in the end, they just save you the torture of having to do it yourself. I view it more as an initiation ritual every scientist should endure.
Can you please make the command line options, for many of your gui based programs, easier to find?
I created a bash script to generate custom design.fsf files for each subject and then run it in the command line:
> Date: Mon, 18 Jun 2012 09:55:11 -0400
> From:
[log in to unmask]> Subject: Re: [FSL] FEAT: custom design.fsf fails with command-line, works in gui
> To:
[log in to unmask]>
> Thanks for the advice, unfortunately simply running diff won't work because the way the script is written, it adds the custom variables to the end of the design.fsf file so the same information is in a different place in the two files. In the past, constructing design.fsf files this way has worked fine. For some reason though it doesn't appear to work with EVs.
>
>
> On Jun 15, 2012, at 5:23 PM, Michael Harms wrote:
>
> > Did you try 'diff'ing the original design.fsf file generated by your
> > bash script with the one that you get when you load it into the GUI and
> > then save it back out as new_design.fsf?
> >
> > The GUI implements certain checks, and may have changed some of the
> > fields in your original design.fsf. 'diff'ing the two should establish
> > what the problem in the original was.
> >
> > cheers,
> > -MH
> >
> >
> > On Fri, 2012-06-15 at 17:08 -0400, Peter Fried wrote:
> >> Dear FSL Experts & Community,
> >>
> >> I created a bash script to generate custom design.fsf files for each subject and then run it in the command line:
> >>
> >> feat <design.fsf>
> >>
> >> When I do, the design.fsf file is created as it should, but feat fails to load the first custom EVs (with a "can't find <file> for reading" message and the whole thing fails because FILM ran out of memory.
> >>
> >> The weird thing is that when I load the custom design.fsf file into Feat GUI, everything is as it should and it runs without error. I then saved it to a new design.fsf file without changing anything and it was able to run successfully from the command line.
> >>
> >> Any ideas? Does feat need the other supporting files that are generated along with the .fsf? Is there anything else that is different between running it as a command line and through the gui?
> >>
> >> Your help is always appreciated.
> >>
> >> Cheers,
> >> Pete