SUBMIT Process

From the CS 248 Lab

  1. Log into the lab machines and mount your N: drive.
  2. Create a subdirectory (folder) on the N: drive for the assignment you are working on (all work for each assignment should be in a separate directory/folder). Create the file (or files, if the assignment calls for multiple files to be created) to be submitted in the assignment subdirectory within the N: drive.
  3. Connect to the stu computer.
    1. open a terminal window on the lab machine.
    2. telnet to the stu computer using the ssh program (ssh username@stu.cs.jmu.edu). The stu computer refers to the full name, stu.cs.jmu.edu. At the login prompt, enter you account name (your account name is the same as your JMU email account name).
    3. At the password prompt, enter your stu account password (which is the same as your e-mail account password). Note that while you are typing your password, what you are typing will not show up on the display. Windows displays echo an `*' (asterisk) character to the display for each character of a password you enter. The text display does not echo anything! It is easy to make a typing mistake while entering your account name or password. The password can be especially troublesome since if you press a key lightly, there is no way to tell if the key press actually registered. So it is wise to type your account name and password very slowly and deliberately. If you do make a typing mistake, there may be no way to correct it. The `Backspace', `Delete' and cursor keys probably will not correct a typing mistake. So if you make a mistake, all you can do is try to correct the mistake and continue on with entering your account name and password. But expect to get a "password incorrect" message, at which point you will have to try to login again.
    4. After logging in successfully, the system's "message of the day" is displayed. You should then get a command prompt. The default command prompt on stu is different from the default on DOS. It will be a string that ends with '$ ' (as opposed to the DOS prompt that ends with '> ').
    5. Enter the Linux command "mount-n". When prompted for a password, enter your CYAN password. This should mount your N: drive to the stu computer. Verify your N: has been mounted by executing the "ls" (list directory contents) command. You should see the folder n-drive listed.
    6. Enter the Linux command "cd n-drive/subdir", where subdir is the directory from step 2. This should change your current directory so it is your CYAN N: drive and the subdirectory in which you placed your program. You can verify you are in the correct directory by executing the ls command.
  4. Execute the Linux command "submit" on stu.
    1. When prompted, select the course option for your course.
    2. When prompted, indicate which assignment you are submitting.
    3. When prompted, enter the file (or files) you are submitting. If you are submitting multiple files, enter all the file names with the names separated by blanks (not commas). You may also use the wildcard character "*" to submit all files matching that pattern found in your current directory. For example, *.java will submit all java files from your current directory. If you are typing the file name, you must include the .java extension.
    4. When prompted, respond to the honor pledge prompt.
    5. If your submitted file or files fail to compile, the submission will fail. If your program compiles, it will be run with a variety of test data. If it fails to produce the correct output, the submission will fail. Otherwise your submission will be considered successful.
  5. Submit creates a report of the submission. Two copies of the report are produced, one in text form and one in pdf form.
    1. These report files are created in your current directory, which if you followed these directions, is in a subdirectory on your N: drive. . On the lab computer, the report files can be viewed in a separate window by opening the N: drive subdirectory and double clicking on the report file. On stu, you can display the contents of the txt submission report file (but not the PDF file) by executing the Linux less command with the name of the report file as an argument.
    2. If your submission fails, you must review the submission report to determine the source of the problem. On the lab computer, make corrections and test.
    3. When you believe that you have corrected the error causing the submission failure, resubmit on the stu computer.
    4. Repeat this process until you have a clean submit and the report is of a form that is ready to turn in.
  6. On the lab computer, generate a printed copy of the submit report by double-clicking on the PDF file, selecting print in the file menu (or by clicking on the print icon). To do this on your computer at home, you must have the free Adobe acrobat reader installed.
  7. When you are done using the stu computer, execute the "cd" command to return to your "home" directory and then execute "umount-n" to unmount your N: drive from the stu computer. Execute the "exit" command to logoff stu.
  8. When you are done using the lab computer, execute the "cd" command to return to your "home" directory and then execute "umount-n" to unmount your N:drive from the lab (local) computer. Logoff the lab computer.