From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 02:37:22 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DDFC16A4B3 for ; Thu, 9 Oct 2003 02:37:22 -0700 (PDT) Received: from demas002.adtranz.com (demas002.adtranz.com [213.68.98.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F33343FA3 for ; Thu, 9 Oct 2003 02:37:21 -0700 (PDT) (envelope-from aleksandr.derevianko@ru.transport.bombardier.com) Received: from de.transport.bombardier.com (demalng2 [53.191.115.105]) by demas002.adtranz.com (8.12.9/8.12.9) with SMTP id h999bE2Q027608 for ; Thu, 9 Oct 2003 11:37:19 +0200 (MEST) Received: by de.transport.bombardier.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id C1256DBA.0034D6CF ; Thu, 9 Oct 2003 11:37:08 +0200 X-Lotus-FromDomain: TRANSPORT From: aleksandr.derevianko@ru.transport.bombardier.com To: freebsd-questions@freebsd.org Message-ID: Date: Thu, 9 Oct 2003 13:35:56 +0000 Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Subject: How to find out the type of CD in burner from script ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2003 09:37:22 -0000 Hello ! I have the following problem: I'm writing backup scripts, to store SCM tree on CD via ATAPI CD-burner. I need to have ability from inside the script find out the type of CD in burner: Is it CD-R or CD-RW, and is it blank or not, and also obtain at least CD label without mounting CD. Search in mail archive does nothing, so if anybody know how to do this, please respond. P.S. I'm using FreeBSD 4.8 and PLEXTOR CD-R PX-W4824A. Best regards, Alexander.