in reply to Detecting running from cron?

If your cron is properly configured it will automatically send email if any output went to STDOUT or STDERR. So I would recommend making sure your .forward file is what you want and don't worry about it.

But I do suggest that you take a look at Get default login environment - it may protect you from a common gotcha.

  • Comment on Re (tilly) 1: Detecting running from cron?