Date: Thu, 9 Nov 2000 18:09:05 +1300 (NZDT) From: =?iso-8859-1?q?Graham=20Guttocks?= <graham_guttocks@yahoo.co.nz> To: freebsd-hardware@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: query CD-ROM status from within a program? Message-ID: <20001109050905.87034.qmail@web10307.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001109050905.87034.qmail>