IIRC cdrecord has an option to do a "test run", part of the run would include verifying that there is media. Maybe you do a test run, and upon successful completion, kick off the real thing?<div><br></div><div>-Scott<br>
<br><div class="gmail_quote">On Mon, Aug 24, 2009 at 6:28 PM, Robert L. Harris <span dir="ltr"><<a href="mailto:robert.l.harris@gmail.com">robert.l.harris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I am trying to write a script for a friend to automatically dump an<br>
ISO to a<br>
DVD, but I am looking for a way to detect a DVD in the drive. Anyone have<br>
a way to do this? "mt -f /dev/cdrom status" fails, unsurprisingly....<br>
<br>
Robert<br>
<br>
--<br>
<br>
:wq!<br>
====================================================================<br>
Robert L. Harris | GPG Key ID: E344DA3B<br>
@ x-hkp://<a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>
DISCLAIMER:<br>
These are MY OPINIONS With Dreams To Be A King,<br>
ALONE. I speak for First One Should Be A Man<br>
no-one else. - Manowar<br>
<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</blockquote></div><br></div>