Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cron job won't run!

Status
Not open for further replies.
Jul 27, 2001
20
0
0
US
Hi,
I'm trying to run a cron job that will change the ownership of a file in my home directory. But for some reason, the job won't run! Here's what the line looks like:

5 0,12 * * * /usr/bin/chown nobody /export/home/user/example.txt

That's all on one line. When I check the /var/cron/log file, there's no trace of that command running. Can someone tell me what I'm doing wrong? Thanks a bunch!

Rich
 
Is this the last entry in your cron file? If so, you will need a blank line following the last item.
--
robb
 
How did you edit your crontab file ?
If you used vi then you will need to restart crontab to pick up the changed file. Just type crontab <filename>
However if you used crontab -e then this will have been done automatically.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top