Created
January 20, 2014 17:33
-
-
Save nvasilakis/8524747 to your computer and use it in GitHub Desktop.
A script for UPenn students to submit home-works remotely.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function submit { | |
| # cd ~/workspace/HW0 | |
| # get directory from where it's being called | |
| # TODO: Grab homwork number and have cases based on the ant scripts | |
| echo $(pwd) | |
| ant pack | |
| username="$(grep '^SEAS login' README | sed 's/SEAS login://' | sed 's/ //')" | |
| rsync -av --progress submit-hw*.zip "${username}@eniac.seas.upenn.edu:~" | |
| ssh ${username}@eniac.seas.upenn.edu "turnin -c cis455 -p hw0 submit-hw0.zip; turnin -c cis455 -p hw0 -v" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment