Meaning of >/dev/null 2>&1 - Linux Views : 258
Tagged in : Linux
0 0
Send mail
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.
By Sanju, On - 2011-09-16



    Login to add Comments .