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.
|
Next you want to cat your program, compile it and
run it. After this is done, make sure you type:
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).
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.
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:
% script myscript
% cat assign1.f
% f77 assign1.f
% a.out
% exit
% lpr -Pcs4204 myscript
Course Policies
Tentative Schedule
Help and References
Assignments
Grades & Announcements
Home