title: Run an Executable Terminal Program in Linux for Multiple Files to Produce Multiple Output Files
body: <p>I have an executable program that is run in the Linux terminal. The program works as follows: </p>
  
  <p>In terminal I enter the name of the program. Then it gives me the following prompts: outputfile, times, input file, option, ect. I'm trying to create a script to run the program on all files in the directory. All of the prompts that the program gives are the same, except the output and input files differ from file to file. There are approximately 300 input files named 001h.pdb ... 300h.pdb. I need the output files to be 001p.acc ... 300p.acc. </p>
  
  <p>(Also, the responses to the program's prompts are: "outputfile", 1, "inputfile", bnl, next, next, allatm, next, next, no.)</p>
  
  <p>What would be a reasonable csh script?</p>