kraduk at gmail.com
Tue Jun 16 06:48:29 UTC 2015
dont do it willy nilly though as if you fill /tmp it can cause a system
issues, especially for tmpfs backed systems, and always clean up after
On 15 June 2015 at 17:51, <kpneal at pobox.com> wrote:
> On Mon, Jun 15, 2015 at 01:55:16AM +0200, Polytropon wrote:
> > On Sun, 14 Jun 2015 15:07:18 -0500, Lt. Commander wrote:
> > > I know it's ugly..... but places a list of the IPs in a file plus
> sends me a
> > > message with the same list.
> > Yes, it is ugly, but will probably work fine. :-)
> > Allow me a few comments:
> > > #!/bin/sh
> > > cd /var/log
> > Use absolute file names - you're accessing /var/log/maillog
> > only once.
> > > grep -i spam=YES maillog > spam.tmp && \
> > Don't write temporary files to /var/log, use /tmp instead.
> Major, major seconded. On top of that, use the mktemp command in scripts.
> Kevin P. Neal http://www.pobox.com/~kpn/
> "Not even the dumbest terrorist would choose an encryption program that
> allowed the U.S. government to hold the key." -- (Fortune magazine
> is smarter than the US government, Oct 29 2001, page 196.)
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions