Multiple cronjobs each has serperate email receiver

Discussion in 'Site & Server Administration' started by EricBruggema, Jun 4, 2013.

  1. #1
    Hi there,

    I'd hope this post is in the right section, if not, please place it in the forum where it should be (forgive me my mistake.. lol)

    I'm looking for a solution for the following; i have a server that runs multiple cronjobs, but some of the cronjobs i'd like to receive an email on another email adres?

    so cronjob1 sends email to
    and cronjob2 sends the email to my @gmail.com address
    and so on.

    Can anyone tell me how i can make this possible?

    Thanks!
     
    EricBruggema, Jun 4, 2013 IP
  2. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #2
    You can try with:

    * * * * * your_script.sh | mail -s "Subject" your@email.com
    Code (markup):
     
    RoseHosting, Jun 4, 2013 IP
  3. khawarlatif

    khawarlatif Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Try this,
     
    khawarlatif, Jun 4, 2013 IP