![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to detect if a Windows app dies?? | jimmyc | Windows & DOS: Issues & Discussions | 6 | 12-07-2006 12:31 PM |
| Howto Detect New Nic Card | chakri.penguin | Linux | 0 | 04-06-2006 09:25 PM |
| xterm detect | inquirer | Shell Programming and Scripting | 2 | 11-27-2002 01:33 PM |
| How to detect process | pkanonwe | Shell Programming and Scripting | 2 | 10-18-2002 07:33 AM |
| Not able to detect nr of cpu in Solaris System | pbonato | UNIX for Dummies Questions & Answers | 1 | 04-04-2002 06:29 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
Something like:
Code:
#Add any needed device specifications to the line below; by default, it'll use /dev/cdrom.
cdrecord -atip | grep -F 'Is erasable'
if [ $? -eq 0 ]; then
#cdrecord blank option goes here
else
#cdrecord CD-R option goes here
fi
|
|||
| Google UNIX.COM |