Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Dec 2004 14:17:39 +0100
From:      Joan Picanyol <lists-freebsd-hackers@biaix.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: query cdrw tray
Message-ID:  <20041217131739.GB63127@grummit.biaix.org>
In-Reply-To: <1103310712.53001.22.camel@red.nativenerds.com>
References:  <1103310712.53001.22.camel@red.nativenerds.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Ed Stover <estover@nativenerds.com> [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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041217131739.GB63127>