- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var/spool/mqueue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 04:16 AM
тАО05-14-2008 04:16 AM
Re: /var/spool/mqueue
>I found: find: -exec not terminated with ";"
>Can you please tell me what does it mean?
Remove the extra ")" at the end of the line. (Or was that ")" just your quoting?)
The "+" acts like a ";" except it makes it work much faster.
If your find doesn't accept that "+", you must be on 10.20?
You could try: exec rm -f {} +
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 04:33 AM
тАО05-14-2008 04:33 AM
Re: /var/spool/mqueue
That ")" was not extracharacter... it was just completion of bracket.
My system is HP UX R 11i
I tried
-exec rm -f{}+
but is giving
find: -exec required an argument.
rm:illegal option --{
rm:illegal option --}
rm:illegal option --+
Regards,
Prakash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 04:37 AM
тАО05-14-2008 04:37 AM
Re: /var/spool/mqueue
That ")" was not extracharacter... it was just completion of bracket.
My system is HP UX R 11i
I tried
-exec; rm -f{}+
but is giving
find: -exec required an argument.
rm:illegal option --{
rm:illegal option --}
rm:illegal option --+
Can I try
-exec; rm -f
Regards,
Prakash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 04:39 AM
тАО05-14-2008 04:39 AM
Re: /var/spool/mqueue
find: -exec required an argument.
rm:illegal option --{
rm:illegal option --}
rm:illegal option --+
You need to cut&paste, not retype, you are missing spaces:
-exec rm -f {} +
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 04:46 AM
тАО05-14-2008 04:46 AM
Re: /var/spool/mqueue
In your case using find is not required at all. All the files in /var/spool/mqueue are normal files.
If you do not want to remove the dir, you can use:
cd /var/spool/mqueue
rm *
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 04:49 AM
тАО05-14-2008 04:49 AM
Re: /var/spool/mqueue
>>approx 5 Lac files.
>How many is that again??
I think Prakash is refering to 500,000 files.
Prakash:
Always be prudent when using the rm commands, if you miss something or have something extra, it can have dramatic consequences. If you unsure of the syntax, do a "man
e.g. man find
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 05:13 AM
тАО05-14-2008 05:13 AM
Re: /var/spool/mqueue
~~~~~~~~~
You were right. I was missing spaces. Thanks for your suggestion. It worked and still in execution and removing files ( as I can see free space increasing in bdf ) I think It will take very long time, but ultimately will make few space on my server
Can I use this script in crontab for periodic cleaning of this directory ??
Hi Rasheed
~~~~~~~~~~~
cd /var/spool/mqueue
rm *
Is not workig and returing with message " too many files"
But your earlier suggestion really helped me clearing many MBs of space on my disc and after getting solution from Dennis I interrupted and started Dennis's solution to learn more.
Thanks anyways.
Yogiraj
~~~~~~~
Thanks for your valuable input. Infact i was also afriad of using diff syntax for rm but I cound not find good man for "rm".
I am really thankful to all of you.
Regards,
Prakash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 05:18 AM
тАО05-14-2008 05:18 AM
Re: /var/spool/mqueue
Of course you can create and schedule a maintenace script... But it would be wiser to find the source of the problem.
If you need any further assistance, please let us know.
>but I cound not find good man for "rm".
man rm
is already very informative and simple. :)
good luck!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 05:20 AM
тАО05-14-2008 05:20 AM
Re: /var/spool/mqueue
500 thousand files are too much. That is why I suggested rmving the dir. find normally consumes CPU, but it depends on your system.
Before you use rm, you always make sure that you are in the correct dir by using pwd command.
rm has -i option. But it is not good for using with many files.
man rm
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 06:33 AM
тАО05-14-2008 06:33 AM
Re: /var/spool/mqueue
You'll need to use find/ls if you have .5 million files. That "too many files" error.
>Can I use this script in crontab for periodic cleaning of this directory?
Sure. But why do you have so many files?
If you want to script it, you can add "-mtime +30" to remove files over 30 days old.
>Rasheed: That is why I suggested rmving the dir. find normally consumes CPU.
I would assume the cost would be the same with the find(1) only being a small cost of removing the files.