cron jobs
Posted: Tue Feb 26, 2008 2:14 pm
Use crontab -l to view or crontab -e to edit.
minute | hour | day of month | month | day of week | command
30 13 * * * /usr/test.sh
to not send email
30 13 * * * /usr/test.sh > /dev/null 2>&1
*Note:
If you are having problems with your cron jobs not running correctly make sure you have the environment variables set. The profile does not get sourced.
You can put . /home/user/.bash_profile in your script to load your bash environment.
minute | hour | day of month | month | day of week | command
30 13 * * * /usr/test.sh
to not send email
30 13 * * * /usr/test.sh > /dev/null 2>&1
*Note:
If you are having problems with your cron jobs not running correctly make sure you have the environment variables set. The profile does not get sourced.
You can put . /home/user/.bash_profile in your script to load your bash environment.