[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Wed Feb 16 10:48:24 2005 -->
- <!--x-from-r13: zquvefpu ng tznvy.pbz ([vpunry Vvefpu) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] BASH script - wait for CD insert -->
- <li><em>date</em>: Wed Feb 16 10:48:24 2005</li>
- <li><em>from</em>: mdhirsch at gmail.com (Michael Hirsch)</li>
- <li><em>in-reply-to</em>: <<a href="msg00632.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00632.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] BASH script - wait for CD insert</li>
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
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00649" href="msg00649.html">[ale] BASH script - wait for CD insert</a></strong>
<ul><li><em>From:</em> christopher at bergeron.com (Christopher Bergeron)</li></ul></li>
</ul></li></ul>
<!--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>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00635.html">[ale] BASH script - wait for CD insert</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00637.html">[ale] OT Shot in the dark, cli image viewer</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00635.html">[ale] BASH script - wait for CD insert</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00649.html">[ale] BASH script - wait for CD insert</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00636"><strong>Date</strong></a></li>
<li><a href="threads.html#00636"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>