Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 2014 10:22:44 -0400
From:      Aleksandr Miroslav <alexmiroslav@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   pkg audit not working like portaudit
Message-ID:  <CACcSE1y0bt27o36yvFXRPXviZ9BS6d7eKN6%2B4mP8C-aXQZVJvA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I used to be able to do something like this with portaudit in my cron jobs:

    portaudit > /dev/null || portaudit |mailx -s portaudit root

i.e. portaudit returned a non-zero value when there were vulnerabilities.

I expected "pkg audit" to do the same, but apparently it always
returns zero. Is there some way to get the old portaudit behavior or
do I have to write a script to parse the output?


thanks,
Alex



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACcSE1y0bt27o36yvFXRPXviZ9BS6d7eKN6%2B4mP8C-aXQZVJvA>