Forráskód Böngészése

making this a repo for the good of mankind

tarfeef101 5 éve
commit
192c375325
1 módosított fájl, 10 hozzáadás és 0 törlés
  1. 10 0
      submitscript.sh

+ 10 - 0
submitscript.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+# args are: folder to zip, course, assignment #
+# add your ssh key to auth keys on school
+# change username as needed
+username=tsdedhar
+
+zip -rj submission.zip $1
+scp submission.zip $username@linux.student.cs.uwaterloo.ca:~/submission.zip
+ssh $username@linux.student.cs.uwaterloo.ca "/u/cs246/pub/marmoset_submit $2 $3 ~/submission.zip && rm ~/submission.zip"
+rm submission.zip