Re: Using Make in frequent cron job

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



On Sun, Sep 19, 2010 at 6:58 PM, Kenneth Porter <shiva@xxxxxxxxxxxxxxx> wrote:
> Is there a way to get Make to be silent when it does nothing, but have its
> normal verbosity when something is made?

You can write a wrapper script and run it in a subshell to capture the
output.  Pretend echo is make:

a=$(echo 'made something') # no output
if echo $a | grep 'made something' > /dev/null; then
  echo $a
fi

HTH,
-- Chad
_______________________________________________
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