Re: how to detect inserted DVD media from bash or Perl?
Re: how to detect inserted DVD media from bash or Perl?
- Subject: Re: how to detect inserted DVD media from bash or Perl?
- From: "R. Matthew Emerson" <email@hidden>
- Date: Sat, 14 Apr 2007 17:02:16 -0400
On Apr 14, 2007, at 4:24 PM, email@hidden wrote:
How do I detect the presence / insertion of a DVD, much like the
autorun mechanism on Linux? I want to automatically run certain
operations when the system detects that a DVD with certain files
has been inserted. Since this is a quick weekend project for a
friend, i'd like to be able to do it in Perl or bash if possible
(the "certain operations" I speak of are basically decompress the
files and copy them to a certain place). The DVD will likely be
created on a Linux or Windows box.
You could try to use the disk arbitration framework.
For a trivial example, see the following URL:
http://www.thoughtstuff.com/rme/weblog/?p=3
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden