LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2011, 10:20 PM   #1
extravaganzasd
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Cron Job Nightly Email Question


I need to set up a cron job. On my server everyday a file is created that is called foobar-todays-date. After midnight I would like to send out an email to a few people with the file from the day that just ended. Any help is appreciated!!!
 
Old 08-23-2011, 04:16 AM   #2
salemeni
Member
 
Registered: Aug 2011
Posts: 64

Rep: Reputation: Disabled
Quote:
Originally Posted by extravaganzasd View Post
I need to set up a cron job. On my server everyday a file is created that is called foobar-todays-date. After midnight I would like to send out an email to a few people with the file from the day that just ended. Any help is appreciated!!!
First write a script that send emails with the file.
http://www.simplehelp.net/2008/12/01...-command-line/
http://www.cyberciti.biz/tips/sendin...ttachment.html
http://caspian.dotconf.net/menu/Software/SendEmail/
Then use crontab command
Code:
$ contab -e

00 00 * * * PATHTOYOURSCRIPT/sendmails.sh >> /tmp/log.txt
generics array

Last edited by salemeni; 12-06-2011 at 04:03 AM.
 
  


Reply


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
cron job sends email mdg Programming 2 12-26-2009 04:40 AM
linux cron job duplicate job question cpthk Linux - Newbie 4 09-11-2009 09:52 PM
Blank email on Cron job Taleya Linux - Newbie 3 12-19-2007 08:52 PM
cron job email results... ryedunn Linux - General 7 01-26-2005 11:27 PM
Cron job , send email mikeshn Linux - General 1 09-21-2003 10:02 AM


All times are GMT -5. The time now is 06:37 AM.

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