Article View: es.comp.os.linux.programacion
Article #8532Re: borrar logs
From: Tanke
Date: Mon, 11 Nov 2002 10:03
Date: Mon, 11 Nov 2002 10:03
25 lines
1792 bytes
1792 bytes
A Mon, 11 Nov 2002 01:07:20 +0000, izabaleta@terra.es escribia...
> Muy buenas a todos:
>
> Tengo unos logs que se llaman nombre.log.numero
> Me gustaria saber como puedo borrar de forma programada los logs cuyo
> numero sea superior a 30.
> Ademas me gustaria que me dijeseis algun sitio donde haya buenos
> tutoriales para hacer scripts.
>
> Muchas gracias
Pues te haces un script sencillo que lo haga y a�ades al crontab
cuando tiene q ejecutar el script (man cron, man crontab). Un buen
tutorial de Shell scripts, lo podr�s encontrar en:
http://www.tldp.org/LDP/abs/html/index.html
Saludetes
----- ---- --- -- -
__/\__ Linux User #290112
\ / Fingerprint B779 C605 F224 73B5 CD1A
/_ _\ 01B4 D298 F85B F695 9DD3A
\/ Clave PGP www.escomposlinux.org/tanke
Technical Details
Message-ID:
<pan.2002.11.11.10.03.26.770800@escomposlinux.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!163.117.102.164!not-for-mailReferences:
<e639dfb0.0211110107.385c8e43@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,f5fa2025636d278c X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-11-11 02:03:32 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!163.117.102.164!not-for-mail From: "Tanke" <tanke@escomposlinux.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: borrar logs Date: Mon, 11 Nov 2002 11:03:28 +0100 Organization: ECOLnet Lines: 26 Message-ID: <pan.2002.11.11.10.03.26.770800@escomposlinux.org> References: <e639dfb0.0211110107.385c8e43@posting.google.com> NNTP-Posting-Host: 163.117.102.164 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1037009010 12467841 163.117.102.164 (16 [165709]) User-Agent: Pan/0.13.1 (It's always funny until somebody immanentizes the eschaton (Debian GNU/Linux))