Recommended Posts

Posted

It only emails when there is output. Is there any actual output? If you redirect to say /dev/null there will not be or if you use -q on a PHP script. There are other cases to but I cannot remember those off the top of my head.

Posted
OK, I included -v to tar and I get an email. Thanks.

George

Just to elaborate on why this works (in case anyone finds this useful in the future) the -v means verbose output - meaning the script will be verbose and ouput text. As a result the cron will e-mail the output :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...