Please contact or Mt Xia for assistance with all your shell programming needs.
5.11 FORTRAN: Giving a Name to the Output File
It is possible to have the output sent to a file you specify instead of the default, a.out, by using the following command:
|   
  Command Format:  f77 -o output source                        
                                                               
  output - the name of the executable file                     
                                                              
  source - the name of the Fortran source code file            
 | 
|  
  Command Format:  f77 -S hello.f                              
                                                               
  -S = Compile only                                            
 | 
|  
  Command Format:  f77 -c main.f sub1.f sub2.f                 
                                                               
  -c = Compile, but do not load object files.  This option     
       causes f77 to compile and/or assemble source code       
       programs and leave the corresponding object programs    
       in files with filename extensions of .o.                
 | 
|   
  Command Format:  f77 obj_1 obj_2 obj_3                       
                                                              
  obj_1 through obj_n - the object files                       
 | 
| Command Format: cobol source_filename |