Re: stopping mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 23, 2007 at 03:20:20PM +0000, tony.chamberlain@xxxxxxxxx wrote:
> 
>    I made a monitor from my machine (CentOS 4.5) to do an http to a
>    machine
>    retrieve some info to see if a process is running (on this remote
>    machine I have
>    a task running so it is easy to get the info from my machine).
>    If I cannot access the remote machine, my machine sends mail to me and
>    a couple
>    other people saying the machine is unreachable.  My cronjob runs every
>    5 minutes.
>    Juts occured to me now though that if our network goes down, my
>    machine will be
>    sending mail every 5 minutes saying the machine is unreachable.  These
>    messages
>    will get stored on my machine and all get sent when it comes up.
>    I am wondering whether someone knows how to cancel mail that is queued
>    on a machine, so it
>    doesn't all get sent out.  I do have root access.

Wouldn't it be easier to simply stop cron sending the mail, hang the
follwoing on the end of the cron command:-

    >/dev/null 2>&1

-- 
Chris Green

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux