Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Jonze] Daily Cron Event to Build Links SQL??? >>

Quote Reply
Re: [Jonze] Daily Cron Event to Build Links SQL??? >> In reply to
We have found the easiest way is to put the commands in a shell script, eg:

Code:
#! /bin/sh

## check_and_build_directory.script

/bin/date
echo "Directory: check links, build pages"

echo "==========================================================="
echo "Checking links from 5 days"
perl <PATH_TO>/admin/nph-verify.cgi --check_from 5

echo "==========================================================="
echo "Re-checking problem links"
perl <PATH_TO>/admin/nph-verify.cgi --check_problem

echo "==========================================================="
echo "Build directory"
perl <PATH_TO>/admin/nph-build.cgi --changed

echo "==========================================================="
echo "Done"

Then get cron to run the script:
Add a line like this to mycron.txt (or whatever you call it) ...
Code:
50 1 * * * nice -20 sh $HOME/scripts/check_and_build_directory.script
Update your cron table by running crontab mycron.txt
Subject Author Views Date
Thread Daily Cron Event to Build Links SQL??? >> Jonze 1693 Aug 20, 2002, 1:54 PM
Thread Re: [Jonze] Daily Cron Event to Build Links SQL??? >>
Jonze 1630 Aug 22, 2002, 3:45 PM
Post Re: [Jonze] Daily Cron Event to Build Links SQL??? >>
Paul 1623 Aug 22, 2002, 5:02 PM
Thread Re: [Jonze] Daily Cron Event to Build Links SQL??? >>
YoYoYoYo 1610 Aug 22, 2002, 11:44 PM
Post Re: [YoYoYoYo] Daily Cron Event to Build Links SQL??? >>
Jonze 1587 Aug 23, 2002, 1:40 PM
Post Re: [Jonze] Daily Cron Event to Build Links SQL??? >>
Stealth 1627 Aug 22, 2002, 4:17 PM