This is an old revision of the document!
dvd_drive_status
This program is a successor to the small program tray_open (which also inspired this one).  trayopen works great, but it doesn't poll two things: if the drive is busy or if it has media.  dvd_drive_status adds that feature plus a few more.
Context
The reason this program was written, was because I was having problems having programs access the DVD drive before it is ready. Duplication is simple.
- Open your DVD tray
 - Put a DVD in (yes I realize these steps are stupid, bear with me)
 - Leave the tray open, and run a command that accesses the drive, such as
lsdvd - The DVD tray will close
 lsdvd(or whatever program) will try to access the disc while the drive is still not ready- get frustrated