#!/bin/sh
# shows how much bytes are written on CD

CDWRITER="/dev/sg0"

cdrecord -toc dev=0,3,0
echo "shows how much bytes are written on CD"
echo "1. 1rst block (sector) of 1rst track of the last session"
echo "2. the next writable address in the unwritten session following the "\
     "current"
BLOCK_DATA=`cdrecord -msinfo dev=0,3,0`
echo $BLOCK_DATA
