Re: Automated sending of emails
Re: Automated sending of emails
- Subject: Re: Automated sending of emails
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 28 Dec 2007 12:24:06 -0500
On Dec 27, 2007 9:09 PM, Doug McNutt <email@hidden> wrote:
> At 11:32 -0500 12/27/07, Mr. Dan Pouliot wrote:
> >My boss wants me to send her an email reminder every morning at 6:00 am.
>
> One of the features of the UNIX tool cron is that it can be told to send an email each time it runs a job.
More specifically, any output generated by any cron job is
automatically sent as email to the owner of the crontab that spawned
said job. But you would have to set up forwarding to make sure that
the mail went to the right place, and the end result is invisible
plumbing and spooky action at a distance. Better to just have the
cron job explicitly invoke the mail command to send the message. A
line like this will do so at 6AM every day:
0 6 * * * echo "Text of message" | mail -s "subject of message"
email@hidden
If you only want weekdays and not weekends, then change the last
asterisk to the string 1-5
(that's one hyphen five).
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden