<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: /var/spool/mqueue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197325#M689907</link>
    <description>Hi Prakash,&lt;BR /&gt;&lt;BR /&gt;500 thousand files are too much. That is why I suggested rmving the dir. find normally consumes CPU, but it depends on your system.&lt;BR /&gt;&lt;BR /&gt;Before you use rm, you always make sure that you are in the correct dir by using pwd command.&lt;BR /&gt;&lt;BR /&gt;rm has -i option. But it is not good for using with many files.&lt;BR /&gt;&lt;BR /&gt;man rm&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.</description>
    <pubDate>Wed, 14 May 2008 12:20:20 GMT</pubDate>
    <dc:creator>Rasheed Tamton</dc:creator>
    <dc:date>2008-05-14T12:20:20Z</dc:date>
    <item>
      <title>/var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197307#M689889</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;My /var/spool/mqueue contaings approx 5 Lac files.&lt;BR /&gt;&lt;BR /&gt;I want to remove these files but not possible in single shot of command " rm /var/spool/mqueue/*"&lt;BR /&gt;&lt;BR /&gt;If I go for group of 50s files like " rm /var/spool/mqueue/TmAA* .... likewise... its happening...but will take few days /week this way.&lt;BR /&gt;&lt;BR /&gt;Can you please suggest me how can i do this&lt;BR /&gt;can I remove complete directory "/var/spool/mqueue"  by "rm -rf /var/spool/mqueue"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Prakash</description>
      <pubDate>Wed, 14 May 2008 04:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197307#M689889</guid>
      <dc:creator>Prakash1178</dc:creator>
      <dc:date>2008-05-14T04:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197308#M689890</link>
      <description>Hi Prakash&lt;BR /&gt;&lt;BR /&gt;Take a look in this thread&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1210745968530+28353475&amp;amp;threadId=1164233" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1210745968530+28353475&amp;amp;threadId=1164233&lt;/A&gt;</description>
      <pubDate>Wed, 14 May 2008 05:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197308#M689890</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-05-14T05:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197309#M689891</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;/var/spool/mqueue is the directory that mail spools in. &lt;BR /&gt;&lt;BR /&gt;-fuser /var/spool/mqueue/&lt;BR /&gt;-stop sendmail (/sbin/init.d/sendmail stop)&lt;BR /&gt;-ll -d /var/spool/mqueue/ (note down the permissions)&lt;BR /&gt;-rm -rf /var/spool/mqueue/&lt;BR /&gt;(it will be faster to delete the dir and recreate it)&lt;BR /&gt;&lt;BR /&gt;recreate the /var/spool/mqueue/ and give the correct permissions, restart the sendmail.&lt;BR /&gt;&lt;BR /&gt;But you need to know and correct the problem of getting such a huge no. of mail queues. That should be the next step.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2008 06:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197309#M689891</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-14T06:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197310#M689892</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I tried following loop on my server from the link suggested by you. But its giving message "sh:1: Paramenter not set.&lt;BR /&gt;-------------------------------------&lt;BR /&gt;for i in `mailq |grep -v Deferred |grep -v mqueue |grep -v - |awk '{print $1}'`&lt;BR /&gt;do&lt;BR /&gt;rm /var/spool/mqueue/df$i&lt;BR /&gt;rm /var/spool/mqueue/qf$i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# mailq&lt;BR /&gt;/var/spool/mqueue is empty&lt;BR /&gt;-----------------------------------&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Prakash</description>
      <pubDate>Wed, 14 May 2008 06:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197310#M689892</guid>
      <dc:creator>Prakash1178</dc:creator>
      <dc:date>2008-05-14T06:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197311#M689893</link>
      <description>&amp;gt;My /var/spool/mqueue contaings approx 5 Lac files.&lt;BR /&gt;&amp;gt;If I go for group of 50s files like " rm /var/spool/mqueue/TmAA&lt;BR /&gt;&lt;BR /&gt;With such a huge no. of queues and you were trying to remove it manually already, follow my steps for quick resolution.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 14 May 2008 06:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197311#M689893</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-14T06:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197312#M689894</link>
      <description>Hi Rasheed, &lt;BR /&gt;&lt;BR /&gt;I felt better to go with your suggestion. Thanks to others for helping hands.&lt;BR /&gt;&lt;BR /&gt;I have already launched "rm /var/spool/mqueue" and started clearing file.&lt;BR /&gt;&lt;BR /&gt;But have lil question. If in case new created directory "/var/spool/mqueue" will miss by chance any right/owner/group, will it creat any major problem for my server functionality. &lt;BR /&gt;&lt;BR /&gt;(FYI : We are not using mail services of our server at all.)&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;&lt;BR /&gt;fuser /var/spool/mqueue/ &lt;BR /&gt;-stop sendmail (/sbin/init.d/sendmail stop) &lt;BR /&gt;-ll -d /var/spool/mqueue/ (note down the permissions) &lt;BR /&gt;-rm -rf /var/spool/mqueue/ &lt;BR /&gt;(it will be faster to delete the dir and recreate it) &lt;BR /&gt;&lt;BR /&gt;recreate the /var/spool/mqueue/ and give the correct permissions, restart the sendmail. &lt;BR /&gt;---------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks to All of you.&lt;BR /&gt;&lt;BR /&gt;Reagards,&lt;BR /&gt;&lt;BR /&gt;Prakash</description>
      <pubDate>Wed, 14 May 2008 07:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197312#M689894</guid>
      <dc:creator>Prakash1178</dc:creator>
      <dc:date>2008-05-14T07:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197313#M689895</link>
      <description>Hi Prakash,&lt;BR /&gt;If you do not use mail then it will not affect it. But still it is better to mkdir and chown/mod again back for the above dir, if in case, someone else might use it in the future because the UNIX world supposed to be systematic and professional.&lt;BR /&gt;&lt;BR /&gt;If you are new in the forum, please look assigning points section.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2008 07:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197313#M689895</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-14T07:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197314#M689896</link>
      <description>hi agaian&lt;BR /&gt;&lt;BR /&gt;almost similar thread from you. looks like the anser is here.</description>
      <pubDate>Wed, 14 May 2008 08:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197314#M689896</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-05-14T08:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197315#M689897</link>
      <description>&lt;P&gt;&amp;gt;approx 5 Lac files.&lt;BR /&gt;&lt;BR /&gt;How many is that again??&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Rasheed: (it will be faster to delete the dir and recreate it)&lt;BR /&gt;&lt;BR /&gt;It would be faster to learn the right commands to remove massive quantities, so you don't mess up the directory permissions.&lt;BR /&gt;If you just want to remove all of them, you can do:&lt;BR /&gt;# find /var/spool/mqueue -type f -exec rm -f {} +&lt;BR /&gt;&lt;BR /&gt;&amp;gt;But you need to know and correct the problem of getting such a huge no. of mail queues.'&lt;BR /&gt;&lt;BR /&gt;Right.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;But its giving message "sh:1: Parameter not set.&lt;BR /&gt;for i in `mailq |grep -v Deferred |grep -v mqueue |grep -v - |awk '{print $1}'`&lt;BR /&gt;&lt;BR /&gt;Something is wrong with this line. I have no idea why is it has "-v -"? I'll have to try this at work.&lt;BR /&gt;&lt;BR /&gt;One way to check this is to execute:&lt;BR /&gt;mailq | grep -v Deferred | grep -v mqueue | grep -v - | awk '{print $1}'&lt;BR /&gt;&lt;BR /&gt;You are probably getting nothing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;# mailq&lt;BR /&gt;/var/spool/mqueue is empty&lt;BR /&gt;&lt;BR /&gt;Well you emptied the queue.&lt;BR /&gt;&lt;BR /&gt;And look at your other thread as mentioned by Ahsan:&lt;BR /&gt;&lt;A target="_blank" href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1230131"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1230131&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h30499.www3.hp.com/t5/Messaging/cleaning-var-spool-mqueue/m-p/5108075"&gt;http://h30499.www3.hp.com/t5/Messaging/cleaning-var-spool-mqueue/m-p/5108075&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2012 08:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197315#M689897</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-11-09T08:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197316#M689898</link>
      <description>Hello Dennis,&lt;BR /&gt;&lt;BR /&gt;I found following message on executing your suggested ( If you just want to remove all of them, you can do:&lt;BR /&gt;# find /var/spool/mqueue -type f -exec rm -f +)&lt;BR /&gt;&lt;BR /&gt;I found :&lt;BR /&gt;find: -exec not terminated with ";"&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;Can yo uplease tell me what does it mean..&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Prakash&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2008 10:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197316#M689898</guid>
      <dc:creator>Prakash1178</dc:creator>
      <dc:date>2008-05-14T10:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197317#M689899</link>
      <description>&amp;gt;# find /var/spool/mqueue -type f -exec rm -f +)&lt;BR /&gt;&amp;gt;I found: find: -exec not terminated with ";"&lt;BR /&gt;&amp;gt;Can you please tell me what does it mean?&lt;BR /&gt;&lt;BR /&gt;Remove the extra ")" at the end of the line.  (Or was that ")" just your quoting?)&lt;BR /&gt;The "+" acts like a ";" except it makes it work much faster.&lt;BR /&gt;If your find doesn't accept that "+", you must be on 10.20?&lt;BR /&gt;&lt;BR /&gt;You could try: exec rm -f {} +</description>
      <pubDate>Wed, 14 May 2008 11:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197317#M689899</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-14T11:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197318#M689900</link>
      <description>Dennis,&lt;BR /&gt;&lt;BR /&gt;That ")" was not extracharacter... it was just completion of bracket.&lt;BR /&gt;&lt;BR /&gt;My system is HP UX R 11i&lt;BR /&gt;&lt;BR /&gt;I tried &lt;BR /&gt;&lt;BR /&gt;-exec rm -f{}+&lt;BR /&gt;&lt;BR /&gt;but is giving &lt;BR /&gt;find: -exec required an argument.&lt;BR /&gt;rm:illegal option --{&lt;BR /&gt;rm:illegal option --}&lt;BR /&gt;rm:illegal option --+&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Prakash</description>
      <pubDate>Wed, 14 May 2008 11:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197318#M689900</guid>
      <dc:creator>Prakash1178</dc:creator>
      <dc:date>2008-05-14T11:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197319#M689901</link>
      <description>Dennis,&lt;BR /&gt;&lt;BR /&gt;That ")" was not extracharacter... it was just completion of bracket.&lt;BR /&gt;&lt;BR /&gt;My system is HP UX R 11i&lt;BR /&gt;&lt;BR /&gt;I tried &lt;BR /&gt;&lt;BR /&gt;-exec; rm -f{}+&lt;BR /&gt;&lt;BR /&gt;but is giving &lt;BR /&gt;find: -exec required an argument.&lt;BR /&gt;rm:illegal option --{&lt;BR /&gt;rm:illegal option --}&lt;BR /&gt;rm:illegal option --+&lt;BR /&gt;&lt;BR /&gt;Can I try &lt;BR /&gt;-exec; rm -f&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Prakash</description>
      <pubDate>Wed, 14 May 2008 11:37:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197319#M689901</guid>
      <dc:creator>Prakash1178</dc:creator>
      <dc:date>2008-05-14T11:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197320#M689902</link>
      <description>&amp;gt;-exec rm -f{}+&lt;BR /&gt;find: -exec required an argument.&lt;BR /&gt;rm:illegal option --{&lt;BR /&gt;rm:illegal option --}&lt;BR /&gt;rm:illegal option --+&lt;BR /&gt;&lt;BR /&gt;You need to cut&amp;amp;paste, not retype, you are missing spaces:&lt;BR /&gt;-exec rm -f {} +</description>
      <pubDate>Wed, 14 May 2008 11:39:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197320#M689902</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-14T11:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197321#M689903</link>
      <description>Hi Prakash,&lt;BR /&gt;&lt;BR /&gt;In your case using find is not required at all. All the files in /var/spool/mqueue are normal files. &lt;BR /&gt;&lt;BR /&gt;If you do not want to remove the dir, you can use:&lt;BR /&gt;&lt;BR /&gt;cd /var/spool/mqueue&lt;BR /&gt;rm *&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2008 11:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197321#M689903</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-14T11:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197322#M689904</link>
      <description>Dennis:&lt;BR /&gt;&amp;gt;&amp;gt;approx 5 Lac files.&lt;BR /&gt;&amp;gt;How many is that again??&lt;BR /&gt;&lt;BR /&gt;I think Prakash is refering to 500,000 files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Prakash:&lt;BR /&gt;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 &lt;COMMAND&gt;" on your system.&lt;BR /&gt;&lt;BR /&gt;e.g. man find&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;/COMMAND&gt;</description>
      <pubDate>Wed, 14 May 2008 11:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197322#M689904</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-05-14T11:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197323#M689905</link>
      <description>Hi Dennis&lt;BR /&gt;~~~~~~~~~&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;Can I use this script in crontab for periodic cleaning of this directory ??&lt;BR /&gt;&lt;BR /&gt;Hi Rasheed&lt;BR /&gt;~~~~~~~~~~~&lt;BR /&gt;cd /var/spool/mqueue&lt;BR /&gt;rm *&lt;BR /&gt;Is not workig and returing with message " too many files"&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks anyways.&lt;BR /&gt;&lt;BR /&gt;Yogiraj&lt;BR /&gt;~~~~~~~&lt;BR /&gt;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".&lt;BR /&gt;&lt;BR /&gt;I am really thankful to all of you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Prakash.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2008 12:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197323#M689905</guid>
      <dc:creator>Prakash1178</dc:creator>
      <dc:date>2008-05-14T12:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197324#M689906</link>
      <description>&amp;gt;Can I use this script in crontab for periodic cleaning of this directory ??&lt;BR /&gt;&lt;BR /&gt;Of course you can create and schedule a maintenace script... But it would be wiser to find the source of the problem.&lt;BR /&gt;&lt;BR /&gt;If you need any further assistance, please let us know.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but I cound not find good man for "rm".&lt;BR /&gt;man rm&lt;BR /&gt;is already very informative and simple. :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;good luck!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 14 May 2008 12:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197324#M689906</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-05-14T12:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197325#M689907</link>
      <description>Hi Prakash,&lt;BR /&gt;&lt;BR /&gt;500 thousand files are too much. That is why I suggested rmving the dir. find normally consumes CPU, but it depends on your system.&lt;BR /&gt;&lt;BR /&gt;Before you use rm, you always make sure that you are in the correct dir by using pwd command.&lt;BR /&gt;&lt;BR /&gt;rm has -i option. But it is not good for using with many files.&lt;BR /&gt;&lt;BR /&gt;man rm&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.</description>
      <pubDate>Wed, 14 May 2008 12:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197325#M689907</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-14T12:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: /var/spool/mqueue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197326#M689908</link>
      <description>&amp;gt;Rasheed: In your case using find is not required at all.&lt;BR /&gt;&lt;BR /&gt;You'll need to use find/ls if you have .5 million files.  That "too many files" error.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Can I use this script in crontab for periodic cleaning of this directory?&lt;BR /&gt;&lt;BR /&gt;Sure.  But why do you have so many files?&lt;BR /&gt;If you want to script it, you can add "-mtime +30" to remove files over 30 days old.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Rasheed: That is why I suggested rmving the dir. find normally consumes CPU.&lt;BR /&gt;&lt;BR /&gt;I would assume the cost would be the same with the find(1) only being a small cost of removing the files.</description>
      <pubDate>Wed, 14 May 2008 13:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-spool-mqueue/m-p/4197326#M689908</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-14T13:33:10Z</dc:date>
    </item>
  </channel>
</rss>

