Re: [Hampshire] stat(1)

トップ ページ
著者: Hugo Mills
日付:  
To: Hampshire LUG Discussion List
題目: Re: [Hampshire] stat(1)

このメッセージに返信
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x5763c100.hantslug.org.uk.24297': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: verify signatures failed: Unknown system error
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.