Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-04-2009, 03:59 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
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.
Old 08-04-2009, 04:44 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script - how to check file size noir911 Programming 3 01-24-2009 09:17 AM
How to send a html file as an file attachment to my mail from crontab? GRD Linux - Newbie 2 06-03-2008 11:39 AM
How to write crontab to check file size and all file in a directory? modpriest Linux - Newbie 1 02-14-2008 06:48 AM
perl- check size to see if file is complete michael.barnes Programming 2 02-13-2008 06:20 PM
Need script to check file size. _TK_ Linux - General 1 08-06-2001 08:30 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration