LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 04-26-2006, 12:17 PM   #1
HLisD1
LQ Newbie
 
Registered: Apr 2006
Posts: 4
Thanked: 0
Delete files in /var/spool/mqueue


[Log in to get rid of this advertisement]
RedHat 7.3
./spool/mqueue is 2.9 GB and the root parition is 100% full. In order to recover space until I can get to the root cause of the problem I want to delete the files in mqueue. I've stopped Sendmail and tried rm -rf * . . . which give the following error: bash:/bin/rm: Argument list too long. What steps should I take?
HLisD1 is offline     Reply With Quote
Old 04-26-2006, 12:30 PM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,450
Thanked: 0
why are you using 3 dots (...)?

i would cd to the directory then type rm -rf *.

make sure you're in the correct directory though!

i.e not "/"
satinet is offline     Reply With Quote
Old 04-26-2006, 01:25 PM   #3
HLisD1
LQ Newbie
 
Registered: Apr 2006
Posts: 4
Thanked: 0

Original Poster
cd var/spool/mqueue
rm -rf *

This did not work. Still giving error: bash:/bin/rm: Argument list too long message. Additionl suggestions would be appreciated.
HLisD1 is offline     Reply With Quote
Old 04-26-2006, 01:58 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,285
Blog Entries: 1
Thanked: 5
There are too many files on mqueue !
Go to a directory below and remove mqueue (rm -rf mqueue).
Before that, take note owner/permissions of mqueue (ls -ld mqueue) to be able to re-create it with the same permissions (chown, chmod).

Last edited by marozsas; 04-26-2006 at 02:24 PM..
marozsas is offline     Reply With Quote
Old 04-27-2006, 08:17 AM   #5
nishidwivedi
LQ Newbie
 
Registered: Apr 2006
Posts: 5
Thanked: 0
delete files at /var/spool/queue

try >/var/spool/mqueue

U might need to have permissions to do this.
Check if u have sudo access
nishidwivedi is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
/usr/spool and /var/spool davidsrsb Slackware 1 04-06-2006 06:57 AM
/var/spool/mqueue/ is empty, but Sendmail keeps on sending messages guarriman Linux - Software 1 02-20-2006 05:46 AM
Printing from Mozilla creates 200Mb files in /var/spool/cups mikeyt_333 Linux - Software 3 05-23-2004 01:47 PM
What is /var/spool/mqueue?? WorldBuilder Linux - General 4 05-07-2003 03:32 PM
How to Lock Files (/etc/passwd /var/spool/[user] Larry James Programming 3 12-04-2000 12:06 PM


All times are GMT -5. The time now is 01:56 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration