Changeset 29618 for trunk/base


Ignore:
Timestamp:
Oct 3, 2007, 8:05:40 AM (12 years ago)
Author:
jmpp@…
Message:

Abstract path to mail program.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/portmgr/PortIndex2MySQL.tcl

    r29505 r29618  
    6868set runlog_fd [open $runlog w+]
    6969set lockfile "/tmp/portsdb.lock"
     70set mailprog "/usr/bin/mail"
    7071set DATE [clock format [clock seconds] -format "%A %Y-%m-%d at %T"]
    7172set subject "PortIndex2MySQL run failure on $DATE"
     
    8687    global runlog runlog_fd
    8788    if {$exit_status} {
    88         global subject SPAM_LOVERS
     89        global subject SPAM_LOVERS mailprog
    8990        seek $runlog_fd 0 start
    90         exec -- mail -s $subject $SPAM_LOVERS <@ $runlog_fd
     91        exec -- $mailprog -s $subject $SPAM_LOVERS <@ $runlog_fd
    9192    }
    9293    cleanup runlog
Note: See TracChangeset for help on using the changeset viewer.