baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- 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.
-
[BL] bash basics,
Constant Brouerius van Nidek, 04/17/2003
- Re: [BL] bash basics, sindi keesan, 04/17/2003
- <Possible follow-up(s)>
-
Re: [BL] bash basics,
Constant Brouerius van Nidek, 04/17/2003
- Re: [BL] bash basics, sindi keesan, 04/17/2003
- Re: [BL] bash basics, Constant Brouerius van Nidek, 04/18/2003
-
Re: [BL] bash basics,
Constant Brouerius van Nidek, 04/18/2003
- Re: [BL] bash basics, qwms-avib, 04/18/2003
Archive powered by MHonArc 2.6.24.