On Wed, 19 Jan 2005, Phillip Salzman wrote:
I have a pair of servers that act as SMTP/AV gateways. It seems that
even though we've told the AV software not to store messages, it is
anyway.
They've been running for a little while now - and recently we've noticed
a lot of disk space
On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote:
They've been running for a little while now - and recently we've noticed a
lot of disk space disappearing. Shortly after that, a simple du into our
/var/spool returned a not so nice error:
du: fts_read: Cannot allocate memory
No
Peter Jeremy [EMAIL PROTECTED] wrote:
On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote:
They've been running for a little while now - and recently we've noticed a
lot of disk space disappearing. Shortly after that, a simple du into our
/var/spool returned a not so nice error:
From: Phillip Salzman [EMAIL PROTECTED]
Subject: Very large directory
I have a pair of servers that act as SMTP/AV gateways. It
seems that even though we've told the AV software not to store
messages, it is anyway.
They've been running for a little while now - and recently we've
noticed
Peter Jeremy wrote:
On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote:
They've been running for a little while now - and recently we've noticed a
lot of disk space disappearing. Shortly after that, a simple du into our
/var/spool returned a not so nice error:
du: fts_read: Cannot
Oliver Fromme wrote:
Peter Jeremy [EMAIL PROTECTED] wrote:
On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote:
They've been running for a little while now - and recently we've noticed a
lot of disk space disappearing. Shortly after that, a simple du into our
/var/spool returned
David Landgren [EMAIL PROTECTED] wrote:
Oliver Fromme wrote:
I would suggest trying this simple hack:
cd /var/spool/directory ; cat . | strings | xargs rm -f
It's a dirty hack, but might work, if the file names in
that directory aren't too strange (no spaces etc.).
why
into a for loop removing the files.
--
Phillip Salzman
-Original Message-
From: Peter Jeremy [mailto:[EMAIL PROTECTED]
Sent: January 20, 2005 3:46 AM
To: Phillip Salzman
Cc: [EMAIL PROTECTED]
Subject: Re: Very large directory
On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman
Hello Phillip,
I've received a couple perl scripts from a few different people. I can't
use any of them until this evening due to the current load of the machines
though. Last night I ended up doing a strings on the directory, and taking
its output into a for loop removing the files.
if
of the shell
script.
Oh well. I can't really wo
-Original Message-
From: Wolfgang Zenker [mailto:[EMAIL PROTECTED]
Sent: January 20, 2005 2:04 PM
To: Phillip Salzman
Cc: 'Peter Jeremy'; [EMAIL PROTECTED]
Subject: Re: Very large directory
Hello Phillip,
I've received a couple perl
Oliver Fromme [EMAIL PROTECTED] wrote:
I would suggest trying this simple hack:
cd /var/spool/directory ; cat . | strings | xargs rm -f
Since the original poster was willing to use -rf, wouldn't it be
better to do:
cd /var/spool/directory ; find . -type f -print0 | xargs -0 rm -f
Darryl Okahata wrote:
find . -type f -print0 | xargs -0 rm -f
Slightly more typing, but more robust.
The find utility of FreeBSD knows a -delete option, e.g.:
find /path/to/your/directory -type f -delete
Regards Bjrn
___
On Thu, 2005-Jan-20 13:36:30 -0800, Darryl Okahata wrote:
Since the original poster was willing to use -rf, wouldn't it be
better to do:
cd /var/spool/directory ; find . -type f -print0 | xargs -0 rm -f
The original poster mentioned that find wouldn't work: find(1) uses
fts(3) which reads
Hello,
I have a pair of servers that act as SMTP/AV gateways. It seems that even
though we've told the AV software not to store messages, it is anyway.
They've been running for a little while now - and recently we've noticed a
lot of disk space disappearing. Shortly after that, a simple du
In the last episode (Jan 19), Phillip Salzman said:
I have a pair of servers that act as SMTP/AV gateways. It seems that
even though we've told the AV software not to store messages, it is
anyway.
They've been running for a little while now - and recently we've
noticed a lot of disk space
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dan Nelson wrote:
| Try raising your datasize rlimit value; ..
I found this (lots of files in a directory) to be generally a Bad Idea.
Search performance tends to be poor even with the improvements in 5.x
While I'm not sure that it's possible to in
16 matches
Mail list logo