LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Check file size & if it is zero then send mail (https://www.linuxquestions.org/questions/programming-9/check-file-size-and-if-it-is-zero-then-send-mail-744952/)

prateek_sahu 08-04-2009 03:59 AM

Check file size & if it is zero then send mail
 
HI All, I need to write a shell script which checks file size & if it is zero then it sends mail to some mail id. Can any one also let me know how to activate mail in Linux.Please let me know if you require any further information.

catkin 08-04-2009 04:44 AM

Hello prateek_sahu :)

You have asked two questions in one thread and not done much research before asking. That's not nice. You haven't done much work to help yourself so I don't feel like doing much work to help you.

Google is your friend. People here will be your friend too but only when you try and help yourself first.

You can find out about testing files in bash here.

Best

Charles


All times are GMT -5. The time now is 05:18 AM.