Bash Question

djgoku djgoku at gmail.com
Thu Oct 14 15:09:57 CDT 2004


On Thu, 14 Oct 2004 15:04:15 -0500, Ben Kelley <blk6224 at gmail.com> wrote:
> $? is the exit code of the previous command

# attempt to remount the RW mount point as RW; else abort
$MOUNT -o remount,rw $MOUNT_DEVICE $SNAPSHOT_RW ;
if (( $? )); then
{
        $ECHO "snapshot: could not remount $SNAPSHOT_RW readwrite";
        exit;
}
fi;

So in this example if failed it would echo "snapshot: ...", or else go
to next set of code. Correct?

Thanks,

--
dj_goku
-www.djgoku.com-
-www.tektronic.org-



More information about the Kclug mailing list