[Ilugc] Tips of the day (Check CD script)

  • From: shakthimaan@xxxxxxxxx (Shakthi Kannan)
  • Date: Sun Jan 10 22:20:02 2010

Hi,

--- On Sun, Jan 10, 2010 at 9:07 PM, Vishnu Raj <vishnukraj007@xxxxxxxxx> wrote:
| device=$1
|
| blocksize=`isoinfo -d -i $device | grep "^Logical block size is:" |
| cut -d " " -f 5`
\--

If you don't pass any argument, the script must atleast display the
usage of the script and exit cleanly. Also do check if 'isoinfo' is
available on the system where the script is to be executed, else,
inform the user about it.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

Other related posts: