Can a cron job email me when complete?

Discussion in 'Site & Server Administration' started by Kerosene, Feb 5, 2007.

  1. #1
    I think I automatically get an error message if a cPanel cron job fails - but is there a way I can send an email (to myself) when a cron job has successfully completed?

    I need to empty a cache directory every day, and it would be nice to know the garbage is being emptied while I'm away on holiday.
     
    Kerosene, Feb 5, 2007 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    I think it sends an email on success or failure, but you'd be better to build the email routine right into the PHP function itself, then you can have complete control over the detail sent
     
    frankcow, Feb 5, 2007 IP