[tor-bugs] #4295 [Company]: Please create tor-consensus-health mailing list.

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Oct 27 08:34:17 UTC 2011


#4295: Please create tor-consensus-health mailing list.
------------------------+---------------------------------------------------
    Reporter:  phobos   |       Owner:  phobos  
        Type:  task     |      Status:  reopened
    Priority:  normal   |   Milestone:          
   Component:  Company  |     Version:          
  Resolution:           |    Keywords:          
      Parent:           |      Points:          
Actualpoints:           |  
------------------------+---------------------------------------------------

Comment(by weasel):

 |  MAILTO=tor-consensus-health at lists.torproject.org
 | 2 * * * * cd /srv/metrics.torproject.org/web/; ./run-chc.sh

 [nitpick.  use && to chain commands, not ;.  You want the entire thing to
 fail if cd fails, not having it try ./run-chc and probably failing or
 running a different version of it.]

 > > The first question is does root have to run the script?
 > Adding weasel to the Cc.  Maybe he has an idea?  He always has.

 You could pipe run-chc's output to mail(1):  That has the added benefit
 that errors (stderr) in the command go to the thing in MAILTO (which can
 still be you) and script output goes to whatever you say in mail's command
 line.  Of course if you prefer you can also pipe the scripts stderr to
 mail(1).

 So, maybe change your crontab line to:
 | 2 * * * * cd /srv/metrics.torproject.org/web/ && ./run-chc.sh | mail -E
 -s 'Consensus issues' tor-consensus-health at lists.torproject.org

 If we need more logic than a simple pipe we might want to outsource it
 into a script, but I don't think we're there yet.

 HTH

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4295#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list