Computer Science 1107
AN INTRODUCTION TO FORTRAN PROGRAMMING FOR SCIENTISTS AND ENGINEERS

Script Files

To turn in homework in this class, you would do best to use a "script file". What a script file is, is a way to send the output that you get to the screen both there, and to a file. In other words, you will have the ability to turn in EXACTLY what you see on the screen.

In creating a script file, you have the ability to put as much, or as little in it. For homework's sake, there are three parts that need to be turned in.

  1. The listing of your program (using the cat command)
  2. A compilation of your program (using f77)
  3. A test run of your program (showing all of the features and output)

To start a script file, type:
  script myscript
at the % prompt. Where myscript is the name of the script file you want to create. At this point, anything that appears on the screen also appears in the file.

Next you want to cat your program, compile it and run it. After this is done, make sure you type:
 exit
to close your script file. Until you do this, nothing will be written to it, and everything you type will be added to it. So, the sequence of events is: 



Where assign1.f is the program you want to show, compile and run, myscript is the name of the script file you choose, and -Pcs4204 is the name of the printer you want to print out to (this is the printer in the EE/CSci lab).


Course Policies Tentative Schedule Help and References
Assignments Grades & Announcements Home