DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Email using cron job

  1. #1
    Join Date
    Jan 2015
    Posts
    9

    Email using cron job

    Hi,

    Because of the daily task to monitor session in oracle database, I would like to set this task in crontab to run everyday and automatical send

    the output of the query. Do you have sample script for this? Thanks

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Try using Perl with the MIME::Lite to send the email. This site has a sample script.
    While it is not being maintained, it works for me and it is easy to use.

    http://search.cpan.org/~rjbs/MIME-Li...b/MIME/Lite.pm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width