Sponsored Content
Full Discussion: cd-r vs. cd-rw question
Top Forums UNIX for Dummies Questions & Answers cd-r vs. cd-rw question Post 53960 by Tux on Thursday 29th of July 2004 10:09:41 AM
Old 07-29-2004
eg.

cdrdao disk-info --device ATAPI:1,0,0 2>/dev/null | grep RW| cut -d':' -f 2|tr -d ' '

This pipe would spit out 'yes' is a CD-RW was present and 'no' if you had a CD-R. You just need to modify the cdrdao bit so that it is pointing to the correct SCSI or ATAPI device on your machine. Based on the output of this you can get your script to do the nessesary actions.
 

7 More Discussions You Might Find Interesting

1. Programming

Yet Another Question

Now that I have getch() to work, I have yet another problem. BTW, thank you for answering these questions, I do ask a lot, only because I am eager to know, what is a board used for anyways :) Ok, he's the problem... #include iostream.h #include conio.h int main() { char movement; ... (2 Replies)
Discussion started by: mbolthouse
2 Replies

2. Solaris

vi question

Im trying to edit a 113 meg file in VI and i get the error TMP FILE TOO LARGE. Does someone know how to get around this? Thanks! (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

3. UNIX for Dummies Questions & Answers

mv question

Hello if I like to move file from defined directories system to new directory that not contained any directories system structure . But I like to create the same file system structure as source directory for example : I have 2 directories: foo1 and foo2 foo1 have directories and foo2 have... (2 Replies)
Discussion started by: umen
2 Replies

4. UNIX for Dummies Questions & Answers

Question

hallo, ik heb hier een vraagje. hoeveel gebruikers kunnen er op 1 unix systeem. hopelijk antwoorden golle nu want ik moet da vinde voor school en die leerkracht zaagt. :p groetjes eu wacht wa was mijne nick ah ja vraagje groetjes vraagje ik kan geen engels dus antwoord liever in het... (1 Reply)
Discussion started by: vraagje
1 Replies

5. Shell Programming and Scripting

question about wc

Hey my friend was asking me if i knew a way to cout how many different words in a file. I told him no not off hand, but i was thinking about it, and i started to wonder also. I imagine this is probably pretty simple im just missing something, I keep confusing my self with how you would compair and... (16 Replies)
Discussion started by: yodadbl07
16 Replies

6. Hardware

question

How to add 3 moniters to a pc set up? (2 Replies)
Discussion started by: clicstic
2 Replies

7. AIX

df question

Hi, Can anyone please explain a little about df command. I have following question: Following example is showing % used as 4 where as total free blocks are 15.46 out of 16.00 MB blocks. df -m /test Filesystem MBblocks Free %Used Iused %Iused ... (5 Replies)
Discussion started by: itsabhi9
5 Replies
CD-INFO(1)							   User Commands							CD-INFO(1)

NAME
cd-info - manual page for cd-info version 0.83 i686-pc-linux-gnu SYNOPSIS
cd-info OPTION... Shows Information about a CD or CD-image. DESCRIPTION
-a, --access-mode=STRING Set CD access method -d, --debug=INT Set debugging to LEVEL -T, --no-tracks Don't show track information -A, --no-analyze Don't filesystem analysis --no-cddb Don't look up audio CDDB information or print it -P, --cddb-port=INT CDDB port number to use (default 8880) -H, --cddb-http Lookup CDDB via HTTP proxy (default no proxy) --cddb-server=STRING CDDB server to contact for information (default: freedb.freedb.org) --cddb-cache=STRING Location of CDDB cache directory (default ~/.cddbclient) --cddb-email=STRING Email address to give CDDB server (default me@home) --no-cddb-cache Disable caching of CDDB entries locally (default caches) --cddb-timeout=INT CDDB timeout value in seconds (default 10 seconds) --no-device-info Don't show device info, just CD info --no-disc-mode Don't show disc-mode info --dvd Attempt to give DVD information if a DVD is found. -v, --no-vcd Don't look up Video CD information - for this build, this is always set -I, --no-ioctl Don't show ioctl() information -b, --bin-file[=FILE] set "bin" CD-ROM disk image file as source -c, --cue-file[=FILE] set "cue" CD-ROM disk image file as source -N, --nrg-file[=FILE] set Nero CD-ROM disk image file as source -t, --toc-file[=FILE] set cdrdao CD-ROM disk image file as source -i, --input[=FILE] set source and determine if "bin" image or device --iso9660 print directory contents of any ISO-9660 filesystems -C, --cdrom-device[=DEVICE] set CD-ROM device as source -l, --list-drives Give a list of CD-drives --no-header Don't display header and copyright (for regression testing) --no-joliet Don't use Joliet extensions --no-rock-ridge Don't use Rock-Ridge-extension information --no-xa Don't use XA-extension information -q, --quiet Don't produce warning output -V, --version display version and copyright information and exit Help options: -?, --help Show this help message --usage Display brief usage message AUTHOR
Rocky Bernstein rocky@gnu.org, based on the cdinfo program by Gerd Knorr <kraxel@bytesex.org> and Heiko Eissfeldt <heiko@hexco.de> COPYRIGHT
Copyright (C) 2003, 2004, 2005, 2007, 2008, 2011 R. Bernstein This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Have driver: GNU/Linux ioctl and MMC driver Have driver: cdrdao (TOC) disk image driver Have driver: bin/cuesheet disk image driver Have driver: Nero NRG disk image driver Default CD-ROM device: /dev/scd0 SEE ALSO
cd-drive(1) for CD-ROM characteristics; iso-info(1) for information about an ISO-9660 image. cd-info version 0.83 i686-pc-linux-gnu October 2011 CD-INFO(1)
All times are GMT -4. The time now is 11:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy