From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 17 13:17:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BE3516A4CE for ; Fri, 17 Dec 2004 13:17:32 +0000 (GMT) Received: from grummit.biaix.org (86.Red-213-97-212.pooles.rima-tde.net [213.97.212.86]) by mx1.FreeBSD.org (Postfix) with SMTP id 6F83F43D31 for ; Fri, 17 Dec 2004 13:17:30 +0000 (GMT) (envelope-from lists-freebsd-hackers@biaix.org) Received: (qmail 67407 invoked by uid 1000); 17 Dec 2004 13:17:39 -0000 Date: Fri, 17 Dec 2004 14:17:39 +0100 From: Joan Picanyol To: freebsd-hackers@freebsd.org Message-ID: <20041217131739.GB63127@grummit.biaix.org> Mail-Followup-To: freebsd-hackers@freebsd.org References: <1103310712.53001.22.camel@red.nativenerds.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1103310712.53001.22.camel@red.nativenerds.com> User-Agent: Mutt/1.5.6i Subject: Re: query cdrw tray X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 13:17:32 -0000 * Ed Stover [20041217 13:12]: > Ok, this a good one for experts. > > How to I ask the CD burner if it's tray is open or closed? I am creating > a automagical shell script to do semi-unattended backups and need to > figure out how to make sure there is a cd in the tray before I start > burning. Any help would be greatly appreciated. I'm no expert, but... 521,p1,1$ cdrecord -s dev=1,1,0 -atip > /dev/null | grep "No disk" scsidev: '1,1,0' scsibus: 1 target: 1 lun: 0 cdrecord: This version of cdrecord does not include DVD-R/DVD-RW support code. cdrecord: If you need DVD-R/DVD-RW support, ask the Author for cdrecord-ProDVD. cdrecord: No disk / Wrong disk! qvb -- pica