Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cdde(1) [debian man page]

cdde(1) 																   cdde(1)

NAME
cdde - Compact Disc Detect & Execute SYNOPSIS
cdde [-c filename] [-rbvVh] DESCRIPTION
cdde is a program that detects when a cdrom drive on your system has had a disc inserted. When it finds a disc inserted in the drive it will attempt to determine the type of the disc, and execute a specified command. This means you can put in a dvd and your favorite dvd software will start, or put in a data cd and it will be automatically mounted for you. Right now cdde can detect the following types of discs: * audio cd * data cd * dvd * mixed audio/data cd * vcd * svcd * blank cdr/dvdr For now the dvd checking is just a bit of magic that checks to see if there's a "video_ts" directory on the disc. Same goes for the vcd checking: it just looks for a "vcd" directory on the disc. cdde reads its configuration from "~/.cdde.xml" unless otherwise specified on the command line. OPTIONS
-r, --run Run commands on disc already in drive when is started. -b, --batch Batch mode: check all drives once then exit. (implies -r) -c, --config <filename> Use the config file <filename>. (Default is ~/.cdde.xml) -v, --verbose Print out lots of information. -V, --version Print out version information. -h, --help Print Display this help and exit. FILES
~/.cdde.xml SEE ALSO
cdde.xml(5) AUTHORS
Eric Lathrop <eric@ericlathrop.com> Stanislav Maslovski <stanislav.maslovski@gmail.com> WEBSITE
For the latest release of cdde, see: http://cdde.sourceforge.net/ Eric Lathrop 0.3.1 cdde(1)

Check Out this Related Man Page

cdde.xml(5)															       cdde.xml(5)

NAME
cdde.xml - Configuration file for cdde DESCRIPTION
When cdde is run for the first time, an example xml configuration file (~/.cdde.xml) is created for you: <?xml version="1.0"?> <cdde delay="5000000"> <drive path="/dev/cdrom"> <audio command="echo An audio cd was inserted."/> <data command="echo A data cd was inserted."/> <dvd command="echo A dvd was inserted."/> <vcd command="echo A vcd was inserted."/> <svcd command="echo A svcd was inserted."/> <blank command="echo A blank cdr/dvdr was inserted."/> <mixed command="echo A mixed (audio/data) cd was inserted."/> </drive> </cdde> This default file is not very useful, and so I suggest you to edit it to your needs before running cdde again. You may add as many drive entries, or commands as you like. If multiple entries are found for a type of disc then all entries will be run in the order they are found. The specific device in use can be passed to the command with one of the following special tags: %dev% - is replaced with the device name of the cdrom that just had a disc inserted %mnt% - is replaced with the listed mount point for the cdrom that just had a disc inserted Note: %mnt% is determined through your fstab (usually located in /etc) file. If you do not have a listing for each <drive> in the fstab this will cause problems. This way, you can tell your video player which device to use when playing a VCD, for example. EXAMPLE
This is an example of ~/.cdde.xml file: <?xml version="1.0"?> <cdde delay="5000000"> <drive path="/dev/cdroms/cdrom0"/> <audio command="xmms %mnt%"/> <data command="mount %mnt%"/> <dvd command="xterm -iconic -e mplayer -fs -xineramascreen 1 -dvd 1"/> <vcd command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/> <svcd command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/> <blank command="gcombust"/> <mixed command="mount %mnt%"/> </drive> </cdde> FILES
~/.cdde.xml SEE ALSO
cdde(1) AUTHORS
Eric Lathrop <eric@ericlathrop.com> Stanislav Maslovski <stanislav.maslovski@gmail.com> WEBSITE
For the latest release of cdde, see: http://cdde.sourceforge.net/ Eric Lathrop 0.3.1 cdde.xml(5)
Man Page