From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45bcb61fd06c127b,start X-Google-Attributes: gid1164f8,public From: venger@pitt.edu (Michael C Bednar) Subject: Audio CDs on a VAXstation 3100 w/Ultrix 4.3 Date: 1995/10/28 Message-ID: <1995Oct28.183008@chartreuse.cis.pitt.edu>#1/1 X-Deja-AN: 118288036 organization: Snuffy's Escort Service reply-to: venger+@pitt.edu newsgroups: comp.sys.dec originator: venger@blue-gray.cis.pitt.edu Hi all... I am using a VAXstation 3100 as an x-terminal and have recently come into possession of an RRD42 CD-ROM drive and have attached it to the SCSI bus. I have no problem mounting CD-ROMs, but I would also like to use it to play audio CDs. Since I don't have Motif, xcd is out of the question. I suppose I could hack around the Motif calls, but I don't really need a nice, X interface -- a commandline oriented app would do. Toward this end, I have been perusing the source for xcd and trying to cobble together a quick and dirty commandline-oriented program that would simply start and stop the RRD42. As a test, I have been trying to get the drive to simply eject the caddy. If I place an empty caddy or no caddy in the drive, I get an offline message to std error. If I place an audio CD into the drive, I get a disk error in the error log and the drive gives no outward sign of receiving the command. Has anyone out there dealt with this particular problem? Any and all suggestions are welcomed. My configuration: CPU: KA420 (VAXstation 3100) OS: Ultrix 4.3 CDROM: RRD42 at scsi ID 3 The code so far (most of it lifted from xcd source): #include #include #include #include #include #include extern caddr_t valloc(); int CdFd = 0; main( argc, argv) int argc; char **argv; { int status; if ((CdFd = open(argv[1], O_RDONLY)) >=0) { int cmd = CDROM_EJECT_CADDY; caddr_t argp = (caddr_t) 0; status = ioctl (CdFd, cmd, argp); } close(CdFd); } -- ========================================================================= What? Me speak for my employer? venger+@pitt.edu They don't pay me enough for that... (412)624-6415