Meaning of >/dev/null 2>&1

by Sanju 2011-09-16 15:18:03

What is >/dev/null 2>&1 in Crontab's Cron Job


If you use cron job on Linux, some times you want to ignore the output of the command you executed.

This can be done by adding "> /dev/null 2>&1" behind the cron job command.

"/dev/null" is just redirect all the output to /dev/null which in Linux means we don’t care with the output.

Tagged in:

1015
like
0
dislike
0
mail
flag

You must LOGIN to add comments