Skip to content

Instantly share code, notes, and snippets.

@StephenBrough
Created November 24, 2018 16:32
Show Gist options
  • Select an option

  • Save StephenBrough/d847aff6ca9d1c743db208fa01b0c12f to your computer and use it in GitHub Desktop.

Select an option

Save StephenBrough/d847aff6ca9d1c743db208fa01b0c12f to your computer and use it in GitHub Desktop.
Upload dir to CS3060 server
upload_to_cs3060() {
LOCAL_DIR=$1 # Assignment directory on your local machine
if [ $# -lt 2 ]
then
REMOTE_DIR="$LOCAL_DIR"
else
REMOTE_DIR=$2
fi
USER="Z_<Your UVU ID here, or whatever>"
SERVER_IP="cs3060.tc.uvu.edu"
scp -r $LOCAL_DIR $USER@$SERVER_IP:$REMOTE_DIR
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment