Skip to content

Instantly share code, notes, and snippets.

@shervinshaikh
Last active December 16, 2015 22:29
Show Gist options
  • Save shervinshaikh/5507471 to your computer and use it in GitHub Desktop.
Save shervinshaikh/5507471 to your computer and use it in GitHub Desktop.
Script for submitting project 2 for CS154 from a non-CSIL computer.
#!/bin/sh
# Script to submit project 2 for CS154
# Written By: Shervin Shaikh
# make sure to run this command to allow it to be an executable: chmod 755 submit.sh
# then execute the script with: ./submit.sh
SERVER="csil.cs.ucsb.edu"
USER="your_username"
LOCATION="cs154/p2"
FILES="functions.c functions.h main.c"
scp $FILES $USER@$SERVER:$LOCATION
ssh -tY $USER@$SERVER "cd $LOCATION; ~bboe/bin/submit -p CS154_s13:18 $FILES"
@ramonrovirosa
Copy link

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment