Sponsored Content
Top Forums Shell Programming and Scripting How to detect whethere the CD is R or RW Post 302218001 by jisha on Thursday 24th of July 2008 04:27:18 AM
Old 07-24-2008
CPU & Memory How to detect whethere the CD is R or RW

Hi all,

I need to write a script to write data into cd.
Am using cdrecord command.
i need to implement the following

if ( CD-RW) ( ?? How to find this )
cdrecord blank option
else
cdrecord with out blank option

Now can you please help me to form this statement correctly ?
Basically i need the if "condition "
if ( ????)

Thanks in advance
JS
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to detect process

Dear Sir, Now I use oracle database on AIX server and found some user use iligal program such as development tool logon to my database. I want to detect the process of illegal program and kill it. Could you please suggest me to make detect process. Thank you very much Pkanonwe. (2 Replies)
Discussion started by: pkanonwe
2 Replies

2. Shell Programming and Scripting

xterm detect

i have this script that launches multiple xterm sessionon a CDE. i would like to test the xterm so that when i execute the script using an ordinary terminal it will detect that it will unable to launch the xterm and execute other script instead. i tried using trap and exit status. maybe i am... (2 Replies)
Discussion started by: inquirer
2 Replies

3. UNIX for Advanced & Expert Users

How to detect OS is SLES 10 or not

Hi, I would like to programmatically find if given OS is SLES 10 / RHEL 3/.RHEL 4/RHEL5 etc .. For this do we have any library call/sys call? Or should we use any sys. structure which would give me detailed info. Share me if you have any pointers. Thanks in advance - Krishna (1 Reply)
Discussion started by: krishnamurthig
1 Replies

4. Shell Programming and Scripting

Detect changes in a file

Hi all Just curious , is it possible to detect changes in a file and sent to email . For ex: demo.conf I would like to receive an email everytime a particular file(demo.conf) changes and the content added/removed and who did the change (userid). Is it possible. Thanks CK (4 Replies)
Discussion started by: coolkid
4 Replies

5. Shell Programming and Scripting

detect F5 is pressed

Hello friends, I want to write a shell script in bash shell . Working for the script is to detect any key pressed and disply on screen as "you have pressed: " For example if user pressed F5 then a messaged has to be displayed as "you have pressed F5. Thank you. (4 Replies)
Discussion started by: pradeepreddy
4 Replies

6. Programming

can-not detect TCP disconnects well

Hello everyone. Thanks for reading. I am using Ubuntu 7.04 to experience this problem: I have written my own programs that communicate to eachother and I am having a hard time detecting a TCP socket disconnect when the remote side's computer has a power-failure (for example). On the computer... (6 Replies)
Discussion started by: pjwhite
6 Replies

7. Red Hat

Detect the lun

Hi, Is there command to detect the newly added LUN is linux box. I tried with below commands, but that doesn't work out. fdisk -l, fdisk -l | grep Disk pvscan (5 Replies)
Discussion started by: gsiva
5 Replies

8. Shell Programming and Scripting

Detect changes to crontab

Dear All, My server is running crontabs of 4 different users. I want to develop a script that whenever a particular change occurs in a crontab , it is detected and the particular change is noted into a file. Kindly let me know of suggestions on how it can be achieved. My algo would be: ... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

9. Shell Programming and Scripting

Detect OS

whats the equivalent of detect OS in perl with an if then ? platform='uname' if ]; then alias ls='ls --color=auto' elif ]; then alias ls='ls -G' fi In perl I see perl -Mstrict -MEnglish -E 'say $OSNAME' or print "$^O" Please use CODE tags as required by... (1 Reply)
Discussion started by: nixguynj
1 Replies
BCHUNK(1)						      General Commands Manual							 BCHUNK(1)

NAME
bchunk - CD image format conversion from bin/cue to iso/cdr SYNOPSIS
bchunk [-v] [-p] [-r] [-w] [-s] <image.bin> <image.cue> <basename> DESCRIPTION
bchunk converts a CD image in a ".bin / .cue" format (sometimes ".raw / .cue") to a set of .iso and .cdr tracks. The bin/cue format is used by some non-Unix cd-writing software, but is not supported on most other cd-writing programs. image.bin is the raw cd image file. image.cue is the track index file containing track types and offsets. basename is used for the begin- ning part of the created track files. The produced .iso track contains an ISO file system, which can be mounted through a loop device on Linux systems, or written on a CD-R using cdrecord. The .cdr tracks are in the native CD audio format. They can be either written on a CD-R using cdrecord -audio, or con- verted to WAV (or any other sound format for that matter) using sox. The output type depends on the input type (data is just copied). If the input is in ISO format, the output will be. On the other hand, if the input is raw audio data, the output will be CDR or WAV (the latter if -w is given). It is advisable to edit the .cue file to either MODE2/2352/2048 or MODE2/2352/2324 depending on whether an ISO filesystem or a VCD is desired, respectively. The format itself does not contain this feature and in an ambiguous case it can only guess. OPTIONS
-v Makes binchunker print some more unnecessary messages, which should not be of interest for anyone. -w Makes binchunker write audio tracks in WAV format. -s Makes binchunker swap byte order in the samples of audio tracks. -p Makes binchunker go into PSX mode and truncate MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal 2048 bytes at offset 24. Use this option if input is in PSX mode. -r Makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. Good for MPEG/VCD. Use this option if input is in raw format. FILES
image.bin Raw CD image file image.cue TOC (Track index, Table Of Contents) file *.iso Tracks in ISO9660 CD filesystem format. Can be either written on a CD-R using cdrecord, or mounted (on Linux platforms at least) through a loop device ('mount track.iso /mnt/cdrom -o loop=/dev/loop0,blocksize=1024'). *.cdr Audio tracks in native CD audio format. They can be either written on a CD-R using 'cdrecord -audio', or converted to WAV (or any other sound format for that matter) using sox ('sox track.cdr track.wav'). *.wav Audio tracks in WAV format. SEE ALSO
cdrecord(1), mkisofs(8), sox(1), cdrdao(1) AUTHORS
Heikki Hannikainen <hessu@hes.iki.fi> Bob Marietta <marietrg@SLU.EDU> Colas Nahaboo <Colas@Nahaboo.com> Godmar Back <gback@cs.utah.edu> Matthew Green <mrg@eterna.com.au> Heikki Hannikainen v1.2.0 29 Jun 2004 BCHUNK(1)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy