Go Back  HTML Forums - Free Webmaster Forums and Help Forums > SERVER ADMINISTRATION > Unix Administration
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 01-29-2007, 07:37 PM
  #1
VIROKILL
Champion (Level 13)
 
VIROKILL's Avatar
 
Join Date: Mar 2006
Posts: 226
iTrader: (0)
VIROKILL is an unknown quantity at this point
cron - send mail

is it possible to use cron to send an email to someone or a list of people every 30 mns or and hour or day ect.
__________________
dont click this
VIROKILL is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 06-05-2007, 11:58 AM
  #2
webwise
Novice (Level 1)
 
Join Date: Jun 2007
Posts: 6
iTrader: (0)
webwise is an unknown quantity at this point
Yes. Please take a look here
You will need ExpressionEngine Cron plugin
webwise is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-13-2007, 03:50 AM
  #3
mgolvach
Battler (Level 3)
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
mgolvach is an unknown quantity at this point
You can also just set this up in your crontab - assuming every 30 minutes, just add this line to your crontab

0,30 * * * * (echo "Subject: Cron Email";echo;echo "This is your email. Enjoy!")|/usr/lib/sendmail bob@bob.com,joe@bob.com,jim@bob.com

Pretty much just make sure you pass all the arguments you'll be piping to sendmail in a subshell (by using the parantheses), otherwise only the last echo will get sent through the pipe as sendmail's STDIN. You can make this is as complicated or simple as you want.
Of course, if it's going to be more complicated, it would be easier and less cryptic to write a quick shell script to send the email and then call that from cron

Best of luck

, Mike
mgolvach is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:39 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.