Subject: Re: suppressing cron e-mail confirmations...
From: Stew Benedict (stewb@centurytel.net)
Date: Wed Jan 03 2001 - 11:05:18 MST
redirect the output from your script to /dev/null
somescript > /dev/null
Or rewrite the script to only output when there is a problem:
-------------- cut -------------
#!/bin/sh
if [ -z "$1" ]; then
echo "Syntax: restart.sh
executable-to-watch"
exit
fi
PID=`ps -x | grep $1 | grep -v "grep"
| grep -v $0 | awk '{print $1}'`
if [ -n "$PID" ]; then
else
echo "restarting $1..."
$1
fi
------------- cut -----------------
Stew Benedict
At 11:27 AM 1/3/01 -0600, you wrote:
>I've set up a cron job that runs every hour. (Making some static HTML
>from a PHP script) Now I want to supress all the e-mails cron is
>sending me confirming that the cron job is working! ;-)
>
>How do I do that?
>
>G.
>
>Best regards,
>
>Gawain Reifsnyder
>Guitar.net, Inc.
>http://guitar.net
>
>
>
This archive was generated by hypermail 2a24 : Wed Jan 03 2001 - 11:13:33 MST