Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cdctrl(1) [debian man page]

CDCTRL(1)							   User Commands							 CDCTRL(1)

NAME
cdctrl - command line CDROM control SYNOPSIS
cdctrl [device] cdctrl -c [device] cdctrl -c cdctrl [-V|-?|-h] DESCRIPTION
cdctrl command is a program that opens a CDROM device and may be used for interactive control of the CDROM including play starting at a track, next track, previous track, stop, pause, display info, display CDROM status, and display CDROM directory. This program may be used as a daemon to control an audio CDROM device. The commands to the cdctrl command are: device Open CDROM device. -V Print out version and build information. -h Display help. -v Display help. -D Enable runtime debugging. -c Output CR-LF at end of each line, not LF. By default, cdctrl opens /dev/cdrom, but does not start playing. Output is to standard output with each line terminated by a linefeed (LF). Commands to cdctrl are: 1 Play first track, start playing. s Stop playing. p Pause playing. r Resume playing. e Eject CDROM. c Close CDROM tray. i Display info string. d Display directory. - Play previous track. + Play next track. When on last track, play first track. [1..99] Play track 1..99. ? Display help screen. q Quit. Each command results in one or multiple lines of output to stdout, followed by an info string, followed by END. The format of the info string is: CMD cmd-name cd-status track abs-time rel-time cmd-name := {play, stop, ... quit} from above list cd-status := {invalid, play, paused} cd-status += {completed, error, no_status} track := {1..99} CD track abs-time := HH:MM:SS elapsed since CD start rel-time := HH:MM:SS elapsed since track start FILES
/dev/cdrom - default cdrom device ENVIRONMENT
CDTOOLDEV - cdrom device, overrides compile time defaults SEE ALSO
cdplay(1) AUTHORS
Main code: Thomas Insel <tinsel@tinsel.org> Enhancements: Sven Oliver Moll <smol0075@rz.uni-hildesheim.de> cdctrl extensions: Wade Hampton <whampton@staffnet.com> CDTOOL
29-July-2004 CDCTRL(1)

Check Out this Related Man Page

CDPLAY(1)						      General Commands Manual							 CDPLAY(1)

NAME
cdplay - play audio compact disks SYNOPSIS
cdplay [ -a]|[-r] DESCRIPTION
Cdplay is an audio-cdplayer it can be used interactively or non-interactively. With no flags cdplay is used interactively. When used inter- actively cdplay can be either in non-playing or playing mode. In non-playing mode you can select tracks to be played. In playing mode cdplay shows the track-time, remaining track-time, total-time and remaining total-time. Cdplay assumes the drive to be at /dev/cd0. During non-playing mode the following commands are available: cursor-up/down browse through the track-list spacebar add track to the play-list backspace remove a track from the play-list s start playing the tracks in the play-list. When the play-list is empty start playing from the current position in the track-list until the end of the cd p play the track on the current position in the track-list r play all tracks in a random order (shuffle play) e exit cdplay During playing mode the following commands are available: s stop playing, return to non-playing mode spacebar pause/resume current track cursor-up/down skip to next/previous track OPTIONS
When one of these options is used cdplay does everything in the background. -a Play all tracks, cdplay tells the drive to play all tracks and then it immediately returns to the user -r Play all tracks in random order (shuffle play). Cdplay forks of a new process which starts up a track, during that track it sleeps. When the track is finished it wakes up to start the next track and goes to sleep again. The parent process immediately returns to the user. BUGS
Cdplay does not sense if a cd has changed, so don't switch cd's. If you want to play another cd you have to insert the new cd and start cdplay again. AUTHOR
Michel R. Prevenier (mrpreve@cs.vu.nl) CDPLAY(1)
Man Page