cron jobs

Various Linux Stuff
Post Reply
thockman
Site Admin
Posts: 104
Joined: Thu Dec 15, 2005 5:51 pm
Location: Kansas City
Contact:

cron jobs

Post by thockman » 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests