Hi,
Having just set up my first cron event, I thought I'd add/clarify a few things in Bobsie's most helpful instructions in the resource center.
1) In build_links.sh,
shows up as two lines in the instructions, but needs to be one line. The ">" tells it to direct the output of nph-build.cgi into build_links.log.
2) It is advised to run buil_links.sh from the command line before entering the cron event into the table, just to make sure it works. You can do this by entering:
./build_links.sh
from the command line.
3) Make sure to add a line feed (return) at the end of mycron.txt! It will not work otherwise.
4) Optionally, you can add the following to the top of mycron.txt:
MAILTO=your@email.com
Supposedly, this will notify you via email if there are problems executing the cron job.
Hope this helps,
Dan
Having just set up my first cron event, I thought I'd add/clarify a few things in Bobsie's most helpful instructions in the resource center.
1) In build_links.sh,
Code:
/path/to/cgi/links/admin/nph-build.cgi > /path/to/cgi/links/admin/logs/build_links.log2) It is advised to run buil_links.sh from the command line before entering the cron event into the table, just to make sure it works. You can do this by entering:
./build_links.sh
from the command line.
3) Make sure to add a line feed (return) at the end of mycron.txt! It will not work otherwise.
4) Optionally, you can add the following to the top of mycron.txt:
MAILTO=your@email.com
Supposedly, this will notify you via email if there are problems executing the cron job.
Hope this helps,
Dan