[CentOS] Using Make in frequent cron job
Chad Woolley
thewoolleyman at gmail.com
Mon Sep 20 02:36:37 UTC 2010
On Sun, Sep 19, 2010 at 6:58 PM, Kenneth Porter <shiva at sewingwitch.com> 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
More information about the CentOS
mailing list