services:websubmit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:websubmit [2017/03/27 16:43] – jas | services:websubmit [2017/03/29 15:07] (current) – removed jas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Web Submit ====== | ||
- | |||
- | For many years, students have used the command line //submit// utility for submitting course work. Now, there' | ||
- | |||
- | https:// | ||
- | |||
- | Students with an EECS account can login to Web Submit with their EECS credentials. Students without an EECS account can login with their Passport York credentials. | ||
- | |||
- | After logging in, the user will see a list of academic years, terms, and courses. | ||
- | |||
- | A field " | ||
- | |||
- | Under " | ||
- | |||
- | When the user selects a particular academic year, term, course, and assignment, he will see any files that he has submitted from this Web Submit session or past sessions. | ||
- | |||
- | Web submit has more file restrictions than the standard submit command. | ||
- | |||
- | ===== Check Scripts ===== | ||
- | |||
- | With the command line version of submit, if you have a _check file in your submit directory, it gets executed when students submit their work. _check files are not supported by web-based submit at this time. As a result, if an assignment contains a _check file, web submit will not allow submitting to that assignment, and tell the student to use the command line submit instead. | ||
- | Here is additional documentation on using submit outside the PRISM lab via a Windows or Mac platform. | ||
- | This section was developed by Professor Burton Ma. | ||
- | ==== How to submit from outside the Prism lab ==== | ||
- | |||
- | This course uses an automated system that checks your submitted work for correctness and coding style. The system is not currently compatible with the [[https:// | ||
- | |||
- | ==== Windows users ==== | ||
- | |||
- | Windows does not provide an easy-to-use method for transferring files or for remotely logging in to a UNIX workstation. You will need to download and install software to provide these services. | ||
- | |||
- | == Step 1 == | ||
- | Download and install [[https:// | ||
- | |||
- | == Step 2 == | ||
- | Download and install [[https:// | ||
- | |||
- | == Step 3 == | ||
- | Remote login to the EECS undergraduate server and create a directory for your submission files if you have not already done so in the past. Do this by running the **putty** program that you installed in Step 2. In the //Host Name (or IP address)// field enter the EECS undergraduate server name **red.cse.yorku.ca** and then click the //Open// button | ||
- | |||
- | {{ :putty1.png }} | ||
- | |||
- | == Step 4 == | ||
- | You may get a warning window stating //"The server' | ||
- | |||
- | == Step 5 == | ||
- | You should see a login terminal appear: | ||
- | |||
- | {{ :putty2.png }} | ||
- | |||
- | == Step 6 == | ||
- | Type your EECS user name and press //Enter//. Type your EECS password and press //Enter//; **your password will not appear as you type it**. | ||
- | |||
- | {{ :putty3.png }} | ||
- | |||
- | == Step 7 == | ||
- | To keep things organized, make a directory named submit and change to the newly created directory by typing the commands: | ||
- | |||
- | < | ||
- | mkdir submit | ||
- | cd submit | ||
- | </ | ||
- | |||
- | Do not close **putty**; you still need it to run the submit command. | ||
- | |||
- | {{ :putty4.png }} | ||
- | |||
- | == Step 8 == | ||
- | Transfer your files from your computer to the EECS undergraduate server. Do this by running the **WinSCP** program that you installed in Step 1. Enter the EECS undergraduate server name **red.cse.yorku.ca** as the //Host name//, type in your EECS user name and password, and press the //Login// button. | ||
- | |||
- | {{ : | ||
- | |||
- | == Step 9 == | ||
- | You may get a warning window stating //"The server' | ||
- | |||
- | {{ : | ||
- | |||
- | == Step 10 == | ||
- | When you successfully login, you should see the **WinSCP** program running as shown in the figure below. The left pane shows the file system of your computer, and the right pane shows the file system of the EECS undergraduate server. | ||
- | |||
- | {{ : | ||
- | |||
- | == Step 11 == | ||
- | In the left pane, navigate to the folder containing your submission files using the //Open directory/ | ||
- | |||
- | {{ : | ||
- | |||
- | == Step 12 == | ||
- | In the figure below, you can see that I have successfully found the files that I want to submit in the left pane. | ||
- | |||
- | In the right pane, navigate to your **submit** directory that you created in Step 7. | ||
- | |||
- | {{ : | ||
- | |||
- | == Step 13 == | ||
- | In the left pane, select the files that you want to submit. In the figure below, you can see that I have selected three files to submit. Click the //Upload// button (highlighted in red in the figure below) to upload your files. | ||
- | |||
- | {{ : | ||
- | |||
- | == Step 14 == | ||
- | When the upload is finished, you will see your files appear in your account on the EECS server in the right pane. | ||
- | |||
- | {{ : | ||
- | |||
- | |||
- | == Step 15 == | ||
- | In **putty** verify that your files have been successfully uploaded by listing the contents of the directory: | ||
- | |||
- | < | ||
- | ls | ||
- | </ | ||
- | |||
- | {{ :putty5.png }} | ||
- | |||
- | |||
- | |||
- | == Step 16 == | ||
- | In **putty**, type in the submit command given to you by your instructor. For example, to submit lab1 for EECS2030 you might type: | ||
- | |||
- | < | ||
- | submit 2030 lab1 Point2.java SpiroUtil.java group.txt | ||
- | </ | ||
- | |||
- | {{ :putty6.png }} | ||
- | |||
- | == Step 17 == | ||
- | Read the output of the submit command carefully. If there are errors with your submission you may be forced to re-submit your corrected work. | ||
- | |||
- | == Step 18 == | ||
- | You may re-submit your work as many times as you like. Every time you make changes to your work on your computer, you must re-transfer your work using **WinSCP** and re-submit by typing in the submit command in **putty**. | ||
- | |||
- | ==== Mac users ==== | ||
- | Mac OS provides a terminal program much like the terminal program that you use in the Prism labs. You can transfer your files and submit using the Mac terminal. | ||
- | |||
- | == Step 1 == | ||
- | In **Launchpad**, | ||
- | |||
- | {{ :term1.png }} | ||
- | |||
- | == Step 2 == | ||
- | **ssh** (short for //secure shell//) is a program for logging into a remote computer and for executing commands on a remote computer. | ||
- | |||
- | Remotely log in to your EECS account using **ssh** by typing the following command and pressing //enter//: | ||
- | |||
- | < | ||
- | ssh your_eecs_username@red.eecs.yorku.ca | ||
- | </ | ||
- | |||
- | You should replace '' | ||
- | |||
- | < | ||
- | ssh burton@red.eecs.yorku.ca | ||
- | </ | ||
- | |||
- | {{ :term2.png }} | ||
- | |||
- | == Step 3 == | ||
- | If this is the first time that you have remotely logged in to the server, you will receive a warning message. Type '' | ||
- | |||
- | {{ :term3.png }} | ||
- | |||
- | == Step 4 == | ||
- | Enter your password and press //enter// (your password will not appear as your type): | ||
- | |||
- | {{ :term4.png }} | ||
- | |||
- | == Step 5 == | ||
- | You are now logged in to your EECS account. Notice that the prompt in your terminal has changed to **red** which is the name of the EECS server computer that you are currently logged in to. | ||
- | |||
- | {{ : | ||
- | |||
- | |||
- | == Step 5 == | ||
- | To keep things organized in your EECS account, you should create a directory for your submission files. Type in the following commands, pressing //enter// after each command (if you haven' | ||
- | |||
- | < | ||
- | mkdir submit | ||
- | cd submit | ||
- | </ | ||
- | |||
- | This will create a directory named '' | ||
- | |||
- | {{ :term5.png }} | ||
- | |||
- | |||
- | == Step 6 == | ||
- | Open a second **terminal** window (click on the //Shell// menu and click on //New Window//). You will use this terminal to access files on your computer. | ||
- | |||
- | {{ :term6.png }} | ||
- | |||
- | == Step 7 == | ||
- | Find the directory where your submission files are located. For eclipse users, you can find the directory holding your files using eclipse (in eclipse, open one of your submission files, click the //File// menu and select // | ||
- | |||
- | == Step 8 == | ||
- | Change to the directory on your computer where your submission files are located. For example, my files are located in the directory '' | ||
- | |||
- | < | ||
- | cd workspace/ | ||
- | </ | ||
- | |||
- | {{ :term7.png }} | ||
- | |||
- | == Step 9 == | ||
- | List the contents of the directory by typing the following command into the terminal and press //enter//: | ||
- | |||
- | < | ||
- | ls | ||
- | </ | ||
- | |||
- | In the figure below you can see that I have three files in the directory | ||
- | ('' | ||
- | |||
- | {{ :term8.png }} | ||
- | |||
- | |||
- | == Step 10 == | ||
- | Transfer your files to your '' | ||
- | |||
- | < | ||
- | scp * your_eecs_username@red.eecs.yorku.ca: | ||
- | </ | ||
- | |||
- | Again, replace '' | ||
- | |||
- | If you want to transfer specific files you can do so by transferring them one at a time; for example, I could transfer all three files individually by typing: | ||
- | |||
- | < | ||
- | scp Point2.java burton@red.eecs.yorku.ca: | ||
- | scp SpiroUtil.java burton@red.eecs.yorku.ca: | ||
- | scp group.txt burton@red.eecs.yorku.ca: | ||
- | </ | ||
- | |||
- | {{ :term9.png }} | ||
- | |||
- | |||
- | == Step 11 == | ||
- | **scp** will prompt you for your EECS password; type it in and press // | ||
- | |||
- | {{ :term10.png }} | ||
- | |||
- | |||
- | == Step 12 == | ||
- | **scp** will transfer a copy of your files from your computer to your EECS account. | ||
- | |||
- | {{ :term11.png }} | ||
- | |||
- | |||
- | == Step 13 == | ||
- | Switch back to the first terminal window that you opened (the terminal where you are currently logged into **red**). | ||
- | |||
- | Make sure that your files have been transferred into your '' | ||
- | |||
- | < | ||
- | ls | ||
- | </ | ||
- | |||
- | In the figure below, you can see that the files '' | ||
- | |||
- | {{ :term12.png }} | ||
- | |||
- | |||
- | == Step 14 == | ||
- | Submit your files using the command provided by your instructor. | ||
- | |||
- | For example, to submit lab1 for EECS2030 you might type: | ||
- | |||
- | < | ||
- | submit 2030 lab1 Point2.java SpiroUtil.java group.txt | ||
- | </ | ||
- | |||
- | {{ :term13.png }} | ||
- | |||
- | == Step 15 == | ||
- | Read the output of the submit command carefully. If there are errors with your submission you may be forced to re-submit your corrected work. | ||
- | |||
- | |||
- | |||
- | == Step 18 == | ||
- | You may re-submit your work as many times as you like. Every time you make changes to your work on your computer, you must re-transfer your work using '' | ||
- | |||
- | Your remote login session ends automatically if you don't enter any commands for a certain period of time. If this happens, you will see a message that mentions a '' | ||
- | run the **ssh** program again to log back into **red**. | ||
- | |||
- | |||
- | |||
- | ===== Feedback ===== | ||
- | |||
- | If a faculty member places an HTML file called feedback.html in the users submit directory, and makes the file owned by group submit (chgrp submit feedback.html), | ||
- | |||
- | ===== Additional Configuration ===== | ||
- | |||
- | An optional file called " | ||
- | |||
- | ^ Option ^ Description ^ | ||
- | | preview=false or true | configures whether the user is able to preview previously submitted contents. | ||
- | | maxfilesize=X | limit maximum file size uploaded to X MB. | | ||
- | | log=true | Log user actions (submit files, view submissions, | ||
- | | allow=IPspec | Limit access to submission via IP. Allow lines are NOT appended. | ||
- | |||
- | |||
- | ===== Custom Web Submit Startup URL Parameters ===== | ||
- | |||
- | In order to simplify Web Submit startup for your students, you may include a specific academic year, term, course, and even assignment as additional parameters to the Web Submit URL. For example - this URL would link to Web Submit with academic year 2015-16, winter term, course 9999, and assignment " | ||
- | |||
- | https:// | ||
- | |||
- | When a user clicks on this link, it would take them to the web submit login page. After logging in, the user will be taken immediately to the selected assignment. | ||
- | |||
- | In addition, you can add "& | ||
- | |||
- | ===== Questions? ===== | ||
- | |||
- | If you have any questions about Web Submit, please consult with tech. | ||
services/websubmit.1490647391.txt.gz · Last modified: 2017/03/27 16:43 by jas