LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2011, 03:47 PM   #1
magicman
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
old redhat linux email problems


My system is old. Not debian. My email looks like this:

/var/spool/
ls -l
total 19388
drwxr-xr-x 2 root mail 18837504 mqueue/


How do I clear out the mqueue directory? I don't want to delete it....just clear it out of the email that is clogging up my var partition. This old command doesn't seem to work anymore:

find /var/spool/mqueue -exec rm'{}' \;

Anybody know of the command to clear my mqueue?

Magicman
 
Old 04-12-2011, 03:52 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
why does it matter that it's old? Or not debian?

That command will just delete all files in that directory, but won't work as is as there is no space between the rm and the following '{}'. What is the difference between "delete" and "clear out" here?? if that find command was working then just type it correctly and you'll be fine.
 
Old 04-13-2011, 04:43 PM   #3
magicman
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
doesn't work

no matter how I write the command it just tells me that 'mqueue is a directory' and does not delete the files inside mqueue. find /var/spool/mqueue -exec rm '{}' \;

Any other ideas?
 
Old 04-13-2011, 04:47 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
If you just want to delete all files in /var/spool/mqueue (which is what your command actually does), why not just do a
Code:
rm /var/spool/mqueue/*
Or am I missing something?
 
Old 04-14-2011, 03:35 PM   #5
magicman
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
still doesn't do what I need done

When I use the code:

rm /var/spool/mqueue/*

The screen asks if I want to delete (message 1)?
It asks that for each message. If I type 'y' as a reply, it goes to message 2 and asks the same question. If I answer y for all messages it only goes thru about 10 messages and stops. No differece is noted in the size of the mqueue directory.
 
Old 04-14-2011, 03:39 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Try
Code:
rm -f /var/spool/mqueue
How do you measure the size of the directory? The correct way would be
Code:
du -sh /var/spool/mqueue
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Email Server with RedHat Linux 9 basketkase999 Linux - Newbie 1 03-06-2005 11:27 PM
Configuring SEnd mail as Email server in Redhat Linux 8.0 ganeshrk Linux - Networking 0 01-31-2004 05:02 AM
email client as good as the bat! for redhat 9 linux Razgo Linux - Software 9 12-22-2003 11:11 PM
how to configure email at linux redhat 7.2 jycm2001 Linux - Networking 3 10-16-2003 04:50 AM
Linux Redhat - Email Error chuckf Linux - General 5 10-10-2002 10:43 PM


All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration