
                         CD man 1.0

As you could guess this is yet another programs that makes cdrom play.
Features : 
    * no user interface (at all)
    * jokey mode (starts playing cd on insertion )
    * small size - ~ 12K (i have 8mb ram.. and I want to have X :) )

How to use :

   1. Compile it by typing make. You may want to take a look at Makefile
   2. Syntax : cdman command
        Here command can be anything of the following :

              cdman p                        pause
              cdman r                        resume
              cdman e                        eject
              cdman g starttrack endtrack    start playing 
              cdman g 1 1000                 play all tracks
                                             (ever seen CD with more then 
                                              1000 tracks ? - I didn't )
              cdman j                        start in jokey mode
                                             in this mode cdman will
                                             check the drive every 15 seconds
                                             if disk is playing or was paused
                                             it does nothing. Otherwise
                                             it attempts to start playing.

How I use it :
 I put the following line in  /etc/rc.d/rc.cdrom  :
 /usr/local/bin/cdman j >& /dev/null &

I edited my twmrc file to include the following :


menu "CD"
{
"Go"             f.exec "/usr/local/bin/cdman g 1 1000 &"
"Pause"          f.exec "/usr/local/bin/cdman p &"
"Resume"         f.exec "/usr/local/bin/cdman r &"
"Eject"          f.exec "/usr/local/bin/cdman e &"
}

and certainly an entry 
"CD"            f.menu "CD"
in one of other menus..

It works now ;)


Acknowledgements :

Most of source code was taken from xworkbone (why did they name it like 
this ? ) specifically hardware.c (modified) and misc.c (just a couple of 
functions) You can still see lot's of junk from xworkbone (variables, 
functions..) 

                           enjoy !

                             Volodya Dergachev
                             vdergach@math.upenn.edu

 
