







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: 440 - INT COMPUTER FOR ENG; Subject: GENERAL ENGINEERING; University: Rutgers University; Term: Unknown 1989;
Typology: Assignments
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Introduction to Computers for Engineers 14:440-
Purpose of this document For those students choosing to use the Fortran 90 compiler on Eden [Sunsoft Fortran 90] this document contains an exercise that will familiarize you with the basic functions of Eden. The exercise will take you through the operating system (unix), the editor (emacs), the Fortran compiler (f90), and basic electronic mail commands. It is highly recommended that you try this exercise several times until the commands become second nature to you. No attempt is made to make this a complete outline. Instead, what is presented is the barest outline of what you will need. This will be supplemented as the semester progresses. Terminal access There are numerous terminals (called X-terms) that are available for your use. These are located in the Allison Road Classroom Building as well as at other locations on other campuses. These terminals are dedicated , meaning that they all use software called X-Windows as unix workstations. Some computers run Windows 95 and a program called EXCEED can be used to access the Eden computer in an X-terminal emulation mode. If you have a modem (optional), you may also use your personal computer to access Eden by using the dialup connections. Refer to the RUCS help station to obtain information on how to do this and to get a
list of the most current dialup numbers. All dialups operate with 1 stop bit/full duplex/8 data bits/ no parity. Wake up call When you get to the Allison Road Classroom terminal room, the power should be on, but the screen may be blank. You will first have to wake up the terminal by pressing a key or moving the mouse. The system will respond by displaying a menu similar to that below. If the system still does not work, you will have to reset it by typing the commands
must wait before continuing. When your account is available, reenter the computer through the login screens shown on pages 2 and 3. This time however, you will be using your own account name and secret password rather than the "makeacct" user identification. Killing the menus When you log in, the eden computer will show you a menu. such as that below: Rutgers Main Menu Commands..... Commands Purpose Help Help with the commands on this menu infoservices Access Online library catalogs & Info mail Send & read electronic mail (e-mail) news Post and read newsgroup articles file File manipulation tools, includes editors userinfo User information commands communications RUNet & Internet access and transfer tools Software tools Quit quits menus Rutgers Main Menu> Unfortunately, this menu system is very limited and will not allow you to do the things you need to do. So we are going to kill the menu system. Please note that the procedure done here only needs to be done once , and you will never have to bother with it again. To kill the menus, type in the command "userinfo" at the bottom of the menu. A second menu will appear. Then type in the command "revert" at the bottom of this menu. The machine will respond "Press return to continue:". Do that and then log out. To logout, move the cursor outside the window you are working in. Hold down the left mouse button and a short menu will appear. Move to the last item ("Exit X-windows session" ) in that menu and release the mouse button. This will close your account and log you out. You may then proceed with the rest of the exercise that follows. Once again, the things that we did in these last two sections are one-time operations and never have to be repeated.
Subsequent logons Since your account has been created in the previous section, there is no need to repeat the process. Instead, you will simply type in your username and password when the login screen appears. After you log in, a new screen will appear: When you see this screen, move the cursor to the box that says "Click here to continue" and click the left mouse button once. This will then complete the login procedure. A new screen will then appear:
Two screens appear, one is the working screen where you will do most of your work. The other screen shows the time. Notice that each screen has four icons (symbols) that allow you to control the screen. The circle icon (upper left corner) closes the screen. The box icon in the upper right corner causes the screen to enlarge to occupy the screen, or if pressed a second time, shrink back to the smaller size. The arrow icon causes the screen to extend only in the vertical direction and the "elbow" shaped icon allows you to stretch the window to any desired size. Try clicking on each of the icons to familiarize yourself with their functions. When this screen appears, move the cursor to the working screen after the system identification (such as er4:/eden/u15/peng> in the above example) and click the left mouse button once. This will place you into that window and prepare you to enter your commands. Getting help There are a number of documents that are available at or near your computer that will be useful to you. Look for the literature distribution center near your terminals. Among the many documents that you should take a copy of are: Dialup Access to RU Computing Services Facilities A Sample makeacct Session Choosing a Secure Password You Can Remember An Introduction to the UNIX Operating System Gnu EMACS Short Form INFO: Rutgers Campus-wide Information System Introduction to mm Electronic Mail at Rutgers Reading Netnews with nn There are many others, but these are the essential ones to have. In addition to the printed documents, there are a number of items available on the system for you to take a look at. You do this with the "man" command, where you type the command followed by the command that you want help with. As an example, if you want information about how to print something, type the command man printers. The mail facility From your new Eden account you can send e-mail to others at Rutgers using any of a variety of mail managers. The Eden system may still support old managers such as mm, but you probably will want to use newer mail software such as Pine or Netscape mail. Netscape mail is my favorite and is very easy to use. Log onto your Eden account, type Netscape at the Eden prompt, and click on the mail icon in the lower right hand corner of the Netscape screen. The
first time you use this, you will have to set up your Netscape mail account, but after that it is very easy. er4%> netscape
the last part of the command is the name of the file ("dummy.f90") that is to be converted. Note that if we wanted to compile another program with name "joe.f", the command would be: er2> f90 -o joe joe.f Returning to the compilation of the program named "dummy", if there were no errors in the program, the computer would allow you to continue. But of course, there are several errors, which the computer will list along with appropriate diagnostic messages: line 3: Error: Syntax error at or near symbol * Compilation failed. Thus, the computer located an error at line 3 of the program and could not successfully compile the program. It is now your job to go back into the editor and correct them. Don't worry about the fact that you don't understand the error message or the errors themselves. We will spend the next several weeks talking about these. Instead, focus on the process of edit, compile-interpret error messages, re-edit. We have deliberately introduced four errors into the program to give you some practice in using the editor and the compiler. To correct the program, the following changes must be made:
Logout When you are finished, be sure to log out. If you don't, the account is still open, even if you turn off the terminal, which can lead to disastrous results. To logout, move the cursor to an area outside of any of the screens. When you do this, the shape of the cursor will change from an arrow to an X. When you see the X, hold down the left mouse button and you will see a menu appear. Drag the cursor down to the last item in the list, which is "Exit X-windows Session". When the box containing this command is highlighted, release the mouse button and the machine will log you out. Note also that this list contains many other commands including the emacs editor. This is a shortcut to execute many of the most common commands.