On 29.08.19 01:59, Steven Shockley wrote:
> Is there a command I can put in the crontab that will only
> output if there are updates?

I've come up with:

pkg_add -u -n -I -v 2>&1 | grep 'Adding' | sort -u | sed -e 's/.*Adding
\(.*\)(pretending.*/\1/'

this will print
<package name> - <current version> -> <new version>

Suggestions for something simpler/better that gives above information is
highly appreciated.

Best,
Michael

Reply via email to