停止cron输出

I have a cron command below that is sending me status outputs on the wget.... I really don't want these outputs, I just want the code to run.

wget http://www.domain.com/cron/dailyEmail 2>&1;

How can I turn off the output?

Send the output to the null device.

wget http://www.domain.com/cron/dailyEmail >/dev/null 2>&1

Send it to a temporary file thus:

wget http://www.domain.com/cron/dailyEmail >/tmp/my_wget.out 2>&1

That way, you can see the output if you need to but it doesn't otherwise bother you.

If you want to keep older copies of the output around rather than over-writing them on each run, you can use something like:

wget http://www.domain.com/cron/dailyEmail >/tmp/my_wget_$(date +%Y_%m_%d).out 2>&1

which will give you a filename containing the date (and time if you change the arguments to the date command) but then you'll probably want an automated process to clean up older log files.