Re: Using Make in frequent cron job

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



  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`


like...

     make -q || make




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux