Submission Procedure for Programming Assignments
- SSH/Login to the submission machine:
ec2-174-129-49-13.compute-1.amazonaws.com
Username and passwork has been sent out via a class email.
- CD into the ics421 directory.
- Create a subdirectory for yourself using your UH email
ID (without the at hawaii.edu).
- CD into your directory.
- Create a subdirectory called programN, substitute N with the assignment number..
If you are submitting the same code as your team member, you may create a symbolic link instead of a real subdirectory.
- Upload your code to that directory using a secure FTP client. For example
if your email is blue at hawaii dot edu, and you are submitting code for
Assignment 1, your code should be uploaded to
~/ics421/blue/program1/ directory.
- Create a shell script compile.sh that would compile your
code. A sample is given in the
~/ics421/lipyeow/program1 directory. You just need
to change the paths and source file list.
- Create a shell script run.sh that would execute your
program. A sample is given in the
~/ics421/lipyeow/program1 directory. You just need
to change the paths and source file list.
-
Create a text file team.txt that contains the UH
email ID (without the at hawaii.edu) of the team members,
one member per line.
-
Edit the text files in linux. If you download the compile.sh and run.sh to a windows machine and edit it and upload it, you introduce windows style line feeds which confuses the linux shell.
Run the checksubmissionN (replace N with the assignment number) from your submission directory (/home/db2inst1/ics421//programN/) to check your submission.
-
Unix Commands you might need
- man [commandname]: show the manual page of a command.
- cd: change directory.
- ls: list directory.
- cp: copy files from src to target path.
- rm: remove files.
- jpico: a relatively easy to use editor.
- chmod u+x [file]: add execution permission for user to file.