21. marts 2002 - 10:25Der er
22 kommentarer og 1 løsning
Cleaning the ALL the logs in Debian.
Can someone give me a line to clean ALL the logs in Debian, something that would go inside all the directories and clean, everything. Without me having to cd in and out. Just one line and that is it.
I have something like this to replace words inside directories. Perl is Fantastic. Maybe a mixure of "Find" etc.... I dont know.,
Do you mean: not delete the files, just set their size to 0 bytes? How many root-directories are involved? All files, or just files with a specific extension?
In Linux the logs are stored in /var/log, inside this directory you have other directories like apache, samba, news, exim, apache-perl and lots of files like the logs from mysql, debugg, mail etc......
I want to do something like rotate the files, but not exactly, I want to run a script which will go inside a file and delete the content of it. It will access directories inside /var/log/ and do the same.
Dont really see how that question can be relevant here. Now if you want to chat try visiting some chat channels, this is support. Here you can post questions and people that know the answers will answer. Will not question you why you want to do whatever you wish to do.
Yes, I have deleted all the ones ending in gz. since they are archived compressed files. I have also configured the rotatelog.conf to run daily, but what I wanted was to have a perl line or whatever that could do that automaticly, in the command line for instance.
Find? No need to find it - it's just a standard technique. I can roll out this script on any keyboard, blindfolded, at 3am, with one hand on my back, singing "America, the beutiful..." at the same time. Think of it as a template.
Hej min kære, Hvordan har du i dag, jeg håber, at alle er godt med dig. Jeg er ked af at bekymre dig med min Forslag til et forhold med dig, men jeg ved, at du vil imødekomme min anmodning i god tro og forståelse. Jeg har brug for dig i forretningsbetingelser og rådgive. Mit navn er Grace Dabah jeg bare gik gennem din profil har ingen andre muligheder end at lade dig vide, at jeg er interesseret i at have et forhold med dig, vil jeg også gerne vide dig mere, kan du sende en mail til min e-mail adresse (grace_11dabah @ yahoo.com), så jeg kan sende dig flere oplysninger om mig selv inklusive mit billede. Jeg tror, vi kan gå herfra. Men huske på, at kærlighed ikke har nogen farver barriere, ingen uddannelsesmæssige tilbage jorden barriere, ingen socio-økonomiske barrierer, religiøse, sprog, nationalitet eller afstand hindring, det eneste vigtige der er kærlighed. Jeg venter på din mail til min e-mail adresse ovenfor. Med venlig hilsen, Miss Grace. JPG (91KB, 336 x 576)
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.