Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Problems with a Crontab

Quote Reply
Problems with a Crontab
I can't seem to get a crontab setup to automatically build my links on the UNIX server. Crontab -l shows the crontab fine, but it isn't running.

The following is mycron.txt:
Code:
# (Re)Build the Links HTML Files Every 6 Hours at 1/7 a.m. and p.m.
0 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * /home/goodies/build_links.sh

The following is build_links.sh:
Code:
# Remove backup and new files before rebuild
rm /home/goodies/www/cgi-bin/db/admin/backup/*
rm /home/goodies/www/db/New/*

# Rebuild pages and log actions
/home/goodies/www/cgi-bin/db/admin/nph-build.cgi > /home/goodies/www/cgi-bin/db/admin/logs/build_links.log

Thanks to anyone who can help me figure out why it's not building the links, ever..

Dan Grossman,
webmaster@websitegoodies.com

Quote Reply
Re: Problems with a Crontab In reply to
The problem could be related to Crontab restrictions that your hosting company has placed in their accounts. Try reducing the number of builds to only every two hours rather than every hour.

To edit your crontab, use the following suggestions:

1) Type in the following command line:

Code:
crontab -e

2) Use your arrow keys and backspace key to delete hours in the crontab.

3) Press Ctrl-X.

4) Type Y to save crontab.

Hope this helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------