| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Authentication-Warning: | laud.it.uc3m.es: marcos owned process doing -bs |
| Date: | Fri, 20 Sep 2002 09:52:38 +0200 (CEST) |
| From: | Marcos Lorenzo de Santiago <marcos AT it DOT uc3m DOT es> |
| To: | Rob Brown <rob AT mp3 DOT com> |
| Cc: | cygwin AT cygwin DOT com |
| Subject: | Re: df --local |
| In-Reply-To: | <LMEBLOLOHAGKJEEBFGPKCEFECHAA.rob@mp3.com> |
| Message-ID: | <Pine.LNX.4.44.0209200951330.1841-100000@laud.it.uc3m.es> |
| MIME-Version: | 1.0 |
| X-MIME-Autoconverted: | from QUOTED-PRINTABLE to 8bit by delorie.com id g8K7qr711717 |
> I am trying to write a script that checks the % free of local drives using
> df.
>
> $ df -a
> Filesystem 1k-blocks Used Available Use% Mounted on
> C:\cygwin\bin 19936633 5750854 14185779 29% /usr/bin
> c:\cygwin\lib 19936633 5750854 14185779 29% /usr/lib
> \\server1\rob 961282048 850460672 110821376 89% /rob
> c:\cygwin 19936633 5750854 14185779 29% /
> c: 19936633 5750854 14185779 29% /cygdrive/c
> d: 544324 544324 0 100% /cygdrive/d
> u: 961282048 850460672 110821376 89% /cygdrive/u
>
> The problem is that when I run df --local, I only see remotely mounted
> filesystem:
> $ df --local
> Filesystem 1k-blocks Used Available Use% Mounted on
> \\server1\rob 961282048 850460672 110821376 89% /rob
>
> Is this a bug? It seems to be opposite of what you would expect.
>
> Also, is there a way to exclude the CDrom drive from the script, since it
> will always show 100%?
Well you can always do a df | grep -v "/cygdrive/d"
m4c.
__________________________________________________________
Equipo Técnico de Laboratorios:
Gregorio Corral Torres
Esteban García Cuesta
Marcos Lorenzo de Santiago
Iván Alonso Gutiérrez
__________________________________________________________
Departamento de Ingeniería Telemática
Edificio Torres Quevedo 4.1A01 Tfno:91-624-8757
Escuela Politécnica Superior
Universidad Carlos III Av.Universidad 30 Leganés (Madrid).
__________________________________________________________
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |