Uploading submissions using give - SVF-tools/Software-Security-Analysis GitHub Wiki
Rather than uploading directly using WebCMS, you can also upload labs and assignments using the give command, which is available on CSE servers. However, give is not available on local machines - this guide will show you how to upload your files to CSE servers, and how to access those servers from your local machine.
This guide will be relevant if you set up a Docker image for this course.
1. Uploading files
If you are not using Docker (e.g. if you have cloned the repository and have set up tooling locally), please follow the official CSE instructions here.
If you are using Docker, you will need to use the sftp command directly instead of as a URL:
sftp [email protected]
Replace z0000000 with your zID, and enter your zPass. You should now be in the sftp command line.
To upload a local file to CSE, use the put command. For example, in the root directory of Software-Security-Analysis, I can upload Assignment_1.py like so:
sftp> put Assignment-1/Python/Assignment_1.py <CSE directory>
Use ls (for CSE servers) and lls (for local servers) to check folder structures, and help for a list of all commands.
2. Running give from local machine
To run give, you will need to access CSE servers. The easiest way to do that is via ssh (more detailed instructions are here):
ssh [email protected]
Enter your zPass when prompted, and you should now have access to CSE servers via command line. From there, you can go to the directory where you uploaded your lab/assignment files, and run give:
give cs6131 ass1 Assignment_1.py
Follow give instructions, and you have successfully uploaded your lab/assignment.