Created
December 5, 2012 05:12
-
-
Save kevincon/4212506 to your computer and use it in GitHub Desktop.
CS144 Lab 5 Worktime 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; ./start.sh lab5" | |
sleep 3 | |
xterm -e "ssh -t [email protected]" & | |
xterm -e "ssh -t [email protected] 'cd $EC2_SCRIPT; ./ec2_ssh.sh'" & | |
sleep 15 | |
xterm -e "ssh -t [email protected] 'cd $EC2_SCRIPT; ./ec2_ssh.sh'" & | |
sleep 15 | |
ssh -t [email protected] 'cd $EC2_SCRIPT; ./ec2_ssh.sh' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment