Article View: es.comp.os.linux.programacion
Article #9786Re: Bash (shell script) enviar mail
From: JAT
Date: Fri, 17 May 2002 21:57
Date: Fri, 17 May 2002 21:57
31 lines
2392 bytes
2392 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Jorge" == Jorge <jorge@mipaginapersonal.com> writes:
>> DF=`df /home | awk '/^\//{printf("%d\n", $5)}'`
>> if [ "$DF" -gt 40 ]
Jorge> De esta forma me mira el espacio que tiene en /home, pero
Jorge> no entiendo df /home | awk '/^\//{printf("%d\n", $5)}'
Yo dir�a que la variable DF toma el tanto por ciento utilizado por
la partici�n en la que se ha montado el directorio home. Despu�s
le aplica una condici�n.
Un saludo.
- ------------------------------------------------------------------------
Julio Ant�nez Tar�n <jat at escomposlinux.org> | N� Reg: #110.265
Debian GNU/Linux Woody | Kernel 2.4.18
GPG - Llave p�blica en pgp.rediris.es | E_JAT (irc-ecol)
"Yo uso software libre" (declaraci�n a petici�n de Richard M. Stallman)
- ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Procesado por Mailcrypt 3.5.6, con Emacs/GnuPGP
iD8DBQE85XzVVOsdcr+IVtkRAj9UAKCWYaHXWH8IgQV/1Zk2DLAfW/3LlwCgtbxe
R2iS1hoeKoO3wh0+Mz8yTk0=
=9z+r
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<87k7q2v3my.fsf@JAT.eresmas.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!52-227-adsl.red.retevision.ES!not-for-mailReferences:
<ab8stf$8sv$1@nsnmrro2-gest.nuria.telefonica-data.net> <abg3it$nah$1@news.unizar.es> <aboiol$kiv$1@nsnmpen2-gest.nuria.telefonica-data.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,c5fd9480149bd3c8 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-05-17 13:01:17 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!52-227-adsl.red.retevision.ES!not-for-mail From: JAT <jat@escomposlinux.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: Bash (shell script) enviar mail Date: Fri, 17 May 2002 21:57:41 +0000 Lines: 31 Sender: jat@JAT.eresmas.net Message-ID: <87k7q2v3my.fsf@JAT.eresmas.net> References: <ab8stf$8sv$1@nsnmrro2-gest.nuria.telefonica-data.net> <abg3it$nah$1@news.unizar.es> <aboiol$kiv$1@nsnmpen2-gest.nuria.telefonica-data.net> NNTP-Posting-Host: 52-227-adsl.red.retevision.es (80.224.227.52) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1021665675 23694138 80.224.227.52 (16 [85572]) X-Orig-Path: 127.0.0.1!nobody User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/20.7 (i386-debian-linux-gnu) Cancel-Lock: sha1:BH1rfFHlFmVoOPc8p8HtRH010L0=