WebFaction
Community site: login faq

Hi,

Can I make a cron job for a specific query in MySql and send the results as an email (or email attachment)?

asked 11 Jun '12, 05:31

xpanta
623344
accept rate: 0%


Hi,

You would need to make a script in a programming language such as Python, Perl, or PHP, that would process these results and send them via an email. You can then add this script as a cronjob.

To send the results of the cronjob via email, you just need to include the following line at the top of your crontab: MAILTO=email@example.org

permanent link

answered 11 Jun '12, 05:52

todork
1.2k5
accept rate: 34%

Thanks, I can do that.

(11 Jun '12, 06:08) xpanta
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×168

question asked: 11 Jun '12, 05:31

question was seen: 2,845 times

last updated: 11 Jun '12, 06:08

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM