jsmidt
May 9th, 2009, 07:12 PM
I need to run this command:
synfast params.ini
Where params.ini is a parameter file this code was designed to read which looks like this:
infile=bestcl.fits
outfile=out1.fits
It is a very complex program so altering how it works is out of the question. (So it has to read this file, no way around that. No command line arguments, etc.)
What I need is a script that will run the above command 100 times where each time it runs the outfile=out1.fits in the params.ini file increments each time: outfile=out1.fits, outfile=out2.fits outfile=out3.fits, etc...
Does anyone know any script that can do this? Run the command 100 times while altering this flag in the params file each time? Thanks.
synfast params.ini
Where params.ini is a parameter file this code was designed to read which looks like this:
infile=bestcl.fits
outfile=out1.fits
It is a very complex program so altering how it works is out of the question. (So it has to read this file, no way around that. No command line arguments, etc.)
What I need is a script that will run the above command 100 times where each time it runs the outfile=out1.fits in the params.ini file increments each time: outfile=out1.fits, outfile=out2.fits outfile=out3.fits, etc...
Does anyone know any script that can do this? Run the command 100 times while altering this flag in the params file each time? Thanks.