Re: [Hampshire] stat(1)

Top Page
Author: Hugo Mills
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] stat(1)

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x581ee100.hantslug.org.uk.9333': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Tue Apr 29 16:08:55 2008 BST
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Tue, Apr 29, 2008 at 02:58:09PM +0000, Andy Smith wrote:
> Hi Hugo,
>
> On Tue, Apr 29, 2008 at 03:36:08PM +0100, Hugo Mills wrote:
> >    I'm trying to determine the size of a block device in a shell
> > script, and I'm having some trouble.

>
> [...]
>
> >    Anyone got any ideas?

>
> Is "blockdev --getsize64 <device>" or similar of any use?


blockdev looks like exactly the right tool. Thank you.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
    --- But somewhere along the line, it seems / That pimp became ---    
                       cool,  and punk mainstream.