Skip to content

Instantly share code, notes, and snippets.

@demonbane
Created April 11, 2009 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demonbane/93444 to your computer and use it in GitHub Desktop.
Save demonbane/93444 to your computer and use it in GitHub Desktop.
IP=$(wget -qO - http://ww)
while [ "$type" != "0" ]; do
echo 1 - Eject SCD0
echo 2 - Eject SCD1
echo 3 - Close SCD0
echo 4 - Close SCD1
echo 0 - Quit
read -n1 type
case "$type" in
"1")
ssh matt@$IP -p 21 sudo eject /dev/scd0
;;
"2")
ssh matt@$IP -p 21 sudo eject /dev/scd1
;;
"3")
ssh matt@$IP -p 21 sudo eject -t /dev/scd0
;;
"4")
ssh matt@$IP -p 21 sudo eject -t /dev/scd1
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment