Originally Posted by saran_redhat
Can anyone tel me how to create a script when my mailqueue (mqueue) folder size reaches 1GB and sent email alert to my email id.
Once mqueue folder size reaches the sent alert by mail. Because everytime my mqueue folder size increasing.
Please help me.
Read the man pages on the du command. After that, write your script to check whatever directory you want, and act the way you want when certain conditions are met.
There are thousands of bash scripting tutorials you can easily find, if you tried to look. There are also many that do EXACTLY what you want, that you can download and modify. Have you even tried to look this up?