Skip to content

Instantly share code, notes, and snippets.

@andreabazerla
Last active April 1, 2017 09:31
Show Gist options
  • Save andreabazerla/268a2bbf3e4b8ddd6925980d9cc54de0 to your computer and use it in GitHub Desktop.
Save andreabazerla/268a2bbf3e4b8ddd6925980d9cc54de0 to your computer and use it in GitHub Desktop.
Script in bash to eject CD tray in infinite loop.
#!/bin/bash
while [ 1 ]
do
eject -T /dev/sr0
done &
chmod +x cd.sh
./cd.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment