Redirecting cron job output to log file
![Crontab in linux](https://sillycodes.com/wp-content/uploads/2016/10/crontab_explanation-1.png)
Crontab Explanation
How to redirecting cron job output to log file :
1 |
*/5 * * * * Â Â /home/venkatesh/campaign.sh >> /var/log/precampaign.log 2>&1 |
Note :
2>&1 indicates that the standard error (2>) is redirected to the same file descriptor that is pointed by standard output (&1).