[rt-users] A small script

Scott Hebert scott at cae.com
Wed Sep 3 13:56:00 EDT 2003


Hi,

I had to change the 'open(MAIL' line to use "sendmail -t -i". Otherwise, I
was getting an "Recipient names must be specified' error message.

SH

-----Original Message-----
From: Mikhail Sobolev [mailto:mikhail.sobolev at transas.com]
Sent: Wednesday, September 03, 2003 10:58 AM
To: rt-users at lists.fsck.com
Subject: [rt-users] A small script


Maybe this script will be of use for somebody.

I wanted to receive a summary of the current situations with our queues,
and hacked a small script, which should be attached to this message.

It has only argument: number of days.

We currently use it through crontab:

    MAILTO=sysadms at example.com

    10 1 * * Tue-Sat        root    [ -x /usr/bin/rt-statuses ] &&
/usr/bin/rt-statuses 1
    10 1 * * Mon            root    [ -x /usr/bin/rt-statuses ] &&
/usr/bin/rt-statuses 2

Hope this helps,

--
Misha






More information about the rt-users mailing list