[CentOS] Using Make in frequent cron job

John R Pierce pierce at hogranch.com
Sun Sep 19 22:40:35 EDT 2010

  On 09/19/10 6:58 PM, Kenneth Porter wrote:
> Is there a way to get Make to be silent when it does nothing, but have its
> normal verbosity when something is made?
> I want to use Make in a frequent cron job (every 1/2 hour, perhaps 10
> minutes) but I don't want to get a bunch of emails telling me nothing was
> done (which will be most of the time). I just want to know when it found
> something to do.

you could run `make -q`, then if it returns a non-zero status, run `make`


     make -q || make

More information about the CentOS mailing list