Skip to content

Instantly share code, notes, and snippets.

@nvasilakis
Created January 20, 2014 17:33
Show Gist options
  • Select an option

  • Save nvasilakis/8524747 to your computer and use it in GitHub Desktop.

Select an option

Save nvasilakis/8524747 to your computer and use it in GitHub Desktop.
A script for UPenn students to submit home-works remotely.
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