diff options
| author | picca <picca@web> | 2015-09-14 12:23:22 +0000 |
|---|---|---|
| committer | admin <admin@branchable.com> | 2015-09-14 12:23:22 +0000 |
| commit | b6eebba9ca80e9d643aa1d9af03899932f9704db (patch) | |
| tree | 909ca2730e38614f9aeb62c61390565fb562e1d5 /doc/forum/cron_email.mdwn | |
| parent | cb403672ab32d86fefd33509a167bec54d75a985 (diff) | |
Diffstat (limited to 'doc/forum/cron_email.mdwn')
| -rw-r--r-- | doc/forum/cron_email.mdwn | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/forum/cron_email.mdwn b/doc/forum/cron_email.mdwn new file mode 100644 index 00000000..19f1bb4d --- /dev/null +++ b/doc/forum/cron_email.mdwn @@ -0,0 +1,27 @@ +Hello, + +In my institut, I want to manage a few of my computers with propellor (the cluster will come ;) +So I would like to add a MAILTO to cron. + +The best would be to configure exim4 to redirect all root email to my personnal mbox but for now I just want to do it for cron + +So I created a property for this. + +-- redirect all root email to an email +redirectCronEmail :: String -> Property NoInfo +redirectCronEmail email = "/etc/default/cron" `File.containsLine` ("MAILTO=" ++ email) + `requires` Apt.serviceInstalledRunning "cron" + `onChange` Service.restarted "cron" + + +Would you be so kind to add an equivalent into Cron. (PS I do not know if my property is properly written) + +something like + +Cron.mailTO "toto@titi.org" + +or maybe this is not the right way to solve my problem. + +Cheers + +Frederic |
