Grok Mogger wrote:
I was hoping someone could help me understand how cron magically sends email. My ultimate goal is to configure cron to send real Internet email so instead of just getting mail on my unix accounts on my linux box (which I read via the 'mail' command) I can get email at my gmail account.
Basic answer comes from the manpage for cron:

When executing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if such exists).
so... simple answer is define MAILTO in your crontab

broader answer depends on what mail you want sent - you can always include a sendmail command in whatever script you're running

Miles



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to