[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Just my .02 pfenning.
-CB





Michael Hirsch wrote:

>On Wed, 16 Feb 2005 02:14:09 +0000, Jay Loden <jloden at toughguy.net> wrote:
>  
>
>>I am scripting a DVD backup solution, and the idea is for the script to email
>>the admin when it is ready for the backup, then the admin puts in the DVD and
>>the backup is performed.  Does anyone know of a way to eject the CD tray,
>>wait for the DVD insert and then when it's inserted, continue on with the
>>script (burn the backup)?
>>
>>I know how to eject the tray, but not how to wait for and detect insertion of
>>the DVD.
>>    
>>
>
>I don't know of a scripty way to do it, but the CDROM ioctls let you
>query for the presence of a CD in the drive.  So you can poll for an
>inserted disk.  I've done this in C.  Not all drives correctly support
>it, however.  Ot at least, they didn't 4-5 years ago when I last did
>this.
>
>Michael
>_______________________________________________
>Ale mailing list
>Ale at ale.org
&gt;<a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt;
&gt;  
&gt;


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00632" href="msg00632.html">[ale] BASH script - wait for CD insert</a></strong>
<ul><li><em>From:</em> jloden at toughguy.net (Jay Loden)</li></ul></li>
<li><strong><a name="00636" href="msg00636.html">[ale] BASH script - wait for CD insert</a></strong>
<ul><li><em>From:</em> mdhirsch at gmail.com (Michael Hirsch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00648.html">ALE swap meet: was [ale] [OT] 14&quot; monitor use?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00650.html">[ale] OT: FireFox, pop-up blocking</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00636.html">[ale] BASH script - wait for CD insert</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00645.html">[ale] BASH script - wait for CD insert</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00649"><strong>Date</strong></a></li>
<li><a href="threads.html#00649"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>