Re: Hi Can I tell root mail (from Cron) to go Elseware?

From: Joseph Haig (jrmhaig_at_yahoo.co.uk)
Date: 09/29/05

  • Next message: Matt Johnson: "Re: firefox - no print output"
    Date: Thu, 29 Sep 2005 08:30:13 +0100 (BST)
    To: fred.ogrady@gmail.com, "debian-user@lists.debian.org" <debian-user@lists.debian.org>
    
    

    --- Fred OGrady <fred.ogrady@gmail.com> wrote:

    > Hi everyone.
    > I would like to send these messages to my gmail account instead. any
    > ideas?

    Yes. 'man cron' says the following:

      "When executing commands, any output is mailed to the owner of the
      crontab (or to the user named in the MAILTO environment variable
      in the crontab if such exists)."

    So at the start of your crontab you need a line with something like:

    MAILTO=<your address>

                    
    ___________________________________________________________
    To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Matt Johnson: "Re: firefox - no print output"

    Relevant Pages

    • Re: cron and CRON
      ... cron then wakes up every minute, examining all stored crontabs, ... When executing commands, any output is mailed to the ... owner of the crontab (or to the user named in the MAILTO ... If you run "pstree -p" you'll probably see that the uppercase'd cron ...
      (Debian-User)
    • Re: crontab
      ... >>I have scheduled a task by configuring crontab. ... >>and the mail contents are simply stating the successfull execution of ... >>the cron job. ... If MAILTO is ...
      (comp.os.linux.development.system)
    • Re:crontab bug?
      ... When I edit my crontab and then save it, ... needing to restart cron for every new crontab isnt normal, ... so it may be a bug, or you are doing it wrong. ... you file a bug on cron (see debian website for that) ...
      (Debian-User)
    • SUMMARY: cron entry: nth day of every month?
      ... cron can not handle this with its own syntax. ... 21st but "command" only runs if the output of the "date" command ... What I would suggest is rather than embedding the logic in each script ... The answer is it is _not_ possible to control it only with crontab ...
      (Tru64-UNIX-Managers)
    • Re: Cron job question
      ... > From: root@somedomain.nl (Cron Daemon) ... You've made the classic mistake of confusing the system crontab ... extra column defining which user ID the command should be run as. ... any new cron jobs for any user (including root) and leave the system ...
      (freebsd-questions)