[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to verify inserted floppy...



On Mon, Feb 25, 2002 at 02:44:53PM +0100, trade account wrote:

> [. . .] Is there a better way to check and see if the floppy is
> mounted and the file is there?

if mount | grep fd0 > /dev/null; then
    echo "The floppy is mounted."
else
    echo "The floppy is not mounted."
fi

b&

--
Ben Goren
 mailto:ben_(_at_)_trumpetpower_(_dot_)_com
 http://www.trumpetpower.com/
 icbm:33o25'37"N_111o57'32"W

[demime 0.98d removed an attachment of type application/pgp-signature]