Skip to Content.
Sympa Menu

baslinux - Re: [BL] bash basics

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: Constant Brouerius van Nidek <constant AT indo.net.id>
  • To: <baslinux AT lists.ibiblio.org>
  • Subject: Re: [BL] bash basics
  • Date: Fri, 18 Apr 2003 17:18:41 +0700


That worked as advertised until I tried the bash file out
on an already mounted cdrom ;-).
What would be the error catch inorder to avoid the looped
message that the drive is already mounted?
Thanks

>Constant Brouerius van Nidek wrote:
>>
>> In the bash file I would like to loop the
>> mount command until the cdrom is working.

>Try the following. It assumes the CDrom is
>on /dev/hdc and cycles every two seconds:
>----------------------------------
>until [ "$error" = 0 ]
>do
>mount -t iso9660 /dev/hdc /mnt
>error=$?
>sleep 2
>done
>-----------------------------------


--

NTReader v0.36w(P)/Beta (Registered) in conjunction with Net-Tamer.




Archive powered by MHonArc 2.6.24.

Top of Page