![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to detect if a Windows app dies?? | jimmyc | Windows & DOS: Issues & Discussions | 6 | 12-07-2006 04:31 PM |
| Howto Detect New Nic Card | chakri.penguin | Linux | 0 | 04-07-2006 12:25 AM |
| xterm detect | inquirer | Shell Programming and Scripting | 2 | 11-27-2002 05:33 PM |
| How to detect process | pkanonwe | Shell Programming and Scripting | 2 | 10-18-2002 10:33 AM |
| Not able to detect nr of cpu in Solaris System | pbonato | UNIX for Dummies Questions & Answers | 1 | 04-04-2002 09:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|