AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
February 24, 2017 09:19AM
The simplest possible script is to create a file with 1 line per command you want to execute.

3dROIstats -1DRformat -quiet -mask directory1/inputfile1 > outputfile1.1D
3dROIstats -1DRformat -quiet -mask directory2/inputfile2 > outputfile2.1D


and so on -- create the first line, copy it, and then edit it into the format you need. If you are good with an editor and if your filenames have some usable pattern, this is usually not very difficult. It can be helped by making a list of all the input files, and then editing that into the script, as in

ls directory*/inputfile* > script.csh

and then edit file script.csh to add the necessary text around the input filenames.

If you do not understand this posting and how to start doing this, then I'm afraid you will have to seek help elsewhere, and perhaps find a course that can teach you scripting.
Subject Author Posted

Creating a script to execute a command for multiple participants simultaneously

Jparso February 19, 2017 08:28PM

Re: Creating a script to execute a command for multiple participants simultaneously

Bob Cox February 20, 2017 11:05AM

Re: Creating a script to execute a command for multiple participants simultaneously

Jparso February 21, 2017 02:22PM

Re: Creating a script to execute a command for multiple participants simultaneously

rick reynolds February 23, 2017 11:11AM

Re: Creating a script to execute a command for multiple participants simultaneously

Bob Cox February 24, 2017 09:19AM

Re: Creating a script to execute a command for multiple participants simultaneously

Jparso March 01, 2017 06:20PM