Created
December 5, 2012 05:13
-
-
Save kevincon/4212512 to your computer and use it in GitHub Desktop.
CS144 Lab 5 Sleeptime script
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
#!/bin/sh | |
#Change this to be your SUID | |
SUID=YOUR_SUID | |
#Change this to be the path to your ec2_script/ folder on myth | |
EC2_SCRIPT=~/ec2_script | |
#kinit only works if you've followed instructions at | |
#http://cs.stanford.edu/people/mbostock/kerberos.html | |
kinit [email protected] | |
sleep 3 | |
ssh -t [email protected] "cd $EC2_SCRIPT; ./stop.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment