Monday 29 September 2014

clientmqueue flush script Or flush mailq to reduced the root file system

flush mailq to reduced the root file system

cd  /var/spool/clientmqueue
 - ls -ltr |awk '{print "rm " $9}' > /var/spool/clientmqueue.09Feb2011.rmfile ------> (date should be entered on which date we are doing activity)

- remove first line of rm
- add cd /var/spool/clientmqueue
- give execute command (i.e chmod 777 /var/spool/clientmqueue.09Feb2011.rmfile )
- run the script

mailq -Ac :- To Remove clinetmailque 

No comments:

Post a Comment