Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dvd_eject [2014/05/12 21:18]
beandog
dvd_eject [2018/03/27 23:37]
beandog
Line 1: Line 1:
 ====== dvd_eject ====== ====== dvd_eject ======
 +
 +  * [[dvd_info]] - main package
  
 Along with [[dvd_drive_status]],​ I wrote my own little standalone C program that ejects a DVD drive. Along with [[dvd_drive_status]],​ I wrote my own little standalone C program that ejects a DVD drive.
Line 5: Line 7:
 It's very simple, and is not in the least designed to be a replacement for other eject programs. ​ What it does do is it solves the problems that I run into: waiting for a drive to be in a "​ready"​ state after opening / closing the tray, and working with fussy DVD drives that need to be told to open more than once before it actually does it. It's very simple, and is not in the least designed to be a replacement for other eject programs. ​ What it does do is it solves the problems that I run into: waiting for a drive to be in a "​ready"​ state after opening / closing the tray, and working with fussy DVD drives that need to be told to open more than once before it actually does it.
  
-So, here you go, a link to the source code on github: [[https://github.com/​beandog/​dvd_info/blob/​master/​dvd_eject.c|dvd_eject.c]]+So, here you go, a link to the source code on github: [[https://raw.githubusercontent.com/​beandog/​dvd_info/​master/​dvd_eject.c|dvd_eject.c]]
  
 It's a standalone program, so compiling with gcc or clang is simple as can be: It's a standalone program, so compiling with gcc or clang is simple as can be:
  
 <​code>​ <​code>​
-gcc -o dvd_eject dvd_eject.c+gcc -o dvd_eject ​-ldvdcss ​dvd_eject.c
 </​code>​ </​code>​
 +
 +This doesn'​t check to see if a device is mounted, and will not unmount it. Using ''​eject''​ will.
 +
 +Mine is cooler because of the fun output. :D

Navigation