[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] File and dir size's wrong
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] File and dir size's wrong
- From: Sødal Olav (Geomatikk) <olav.sodal (at) geomatikk.no>
- Date: Mon, 12 Jan 2009 10:40:16 +0100
- References: <b5cd8d890901081638v1ee8a7d3pa6767582f161e490 (at) mail.gmail.com> <b5cd8d890901081640t5bd62eddi202652f7a42a68fb (at) mail.gmail.com> <D83B388BCCB14C4BA91D6F12D9955B72020BDBC0 (at) TD-VIRT-EX-01.geomatikk.ad> <b5cd8d890901111907r74a91ed8s42319cf43b597d12 (at) mail.gmail.com> <D83B388BCCB14C4BA91D6F12D9955B72020BDF00 (at) TD-VIRT-EX-01.geomatikk.ad>
- Thread-index: Acl0Y4oMERSOuooGTwWpCLaoGjCUtQAMgxyQAAD7sNA=
- Thread-topic: [hobbit] File and dir size's wrong
You should try to sort the output by defining DFSORT="-k+4"
Complete command would be df -k | sort -k+4
Worth trying.
-----Opprinnelig melding-----
Fra: Sødal Olav (Geomatikk) [mailto:olav.sodal (at) geomatikk.no]
Sendt: 12. januar 2009 10:12
Til: hobbit (at) hswn.dk
Emne: RE: [hobbit] File and dir size's wrong
Complete command would be "du -k+4". I should have said that. Sorry.
-----Opprinnelig melding-----
Fra: Paul Ward [mailto:pnward (at) googlemail.com]
Sendt: 12. januar 2009 04:07
Til: hobbit (at) hswn.dk
Emne: Re: [hobbit] File and dir size's wrong
I tested what you said but it failed.
I had never heard of using +4 on du anyway, does this actually work??
[dir:/home/xymon]
/usr/bin/du: invalid option -- +
/usr/bin/du: invalid option -- 4
Try `/usr/bin/du --help' for more information.
2009/1/9 Sødal Olav (Geomatikk) <olav.sodal (at) geomatikk.no>:
> Try "-k+4"
>
> -----Opprinnelig melding-----
> Fra: Paul Ward [mailto:pnward (at) googlemail.com]
> Sendt: 9. januar 2009 01:41
> Til: hobbit (at) hswn.dk
> Emne: [hobbit] File and dir size's wrong
>
> Hi,
>
> I have installed xymon on centos5 from source.
>
> For some reason the files and dirs are incorrect.
> My /home/xymon folder is 40MB but is only reported as 40k
>
> I put DU="du -k" into the hobbitserver.cfg hoping to report the folder
> in the same measurements but it is not working.
>
> Any ideas?
>
> Thanks
> --
>
> email: pnward (at) googlemail.com
> website: http://www.pward.co.uk
> MSN: pob2000is (at) hotmail.com
> Skype: paul.n.ward
>
>
>
> --
>
> email: pnward (at) googlemail.com
> website: http://www.pward.co.uk
> MSN: pob2000is (at) hotmail.com
> Skype: paul.n.ward
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
email: pnward (at) googlemail.com
website: http://www.pward.co.uk
MSN: pob2000is (at) hotmail.com
Skype: paul.n.ward
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk