From owner-freebsd-scsi Wed Nov 8 21: 9: 8 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from web10307.mail.yahoo.com (web10307.mail.yahoo.com [216.136.130.85]) by hub.freebsd.org (Postfix) with SMTP id 27A2437B479 for ; Wed, 8 Nov 2000 21:09:05 -0800 (PST) Message-ID: <20001109050905.87034.qmail@web10307.mail.yahoo.com> Received: from [128.165.7.6] by web10307.mail.yahoo.com; Thu, 09 Nov 2000 18:09:05 NZDT Date: Thu, 9 Nov 2000 18:09:05 +1300 (NZDT) From: =?iso-8859-1?q?Graham=20Guttocks?= Subject: query CD-ROM status from within a program? To: freebsd-hardware@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greetings, I'm looking for a way to manipulate a CD-ROM drive from within a shell script (ksh, perl, python, whatever). I need to be able to eject the tray, and also query whether the tray contains a disc or is empty from within the program. The first is easily accomplished with a utility like "eject", but how about the latter? Is there an easy way to tell whether a FreeBSD system's CD-ROM drive contains a disk or not? Regards, Graham _____________________________________________________________________________ http://clubs.yahoo.com.au - Yahoo! Clubs - Join a club or build your own! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message