Gossamer Forum
Home : Products : Links 2.0 : Discussions :

LInks 1.11 - have some questions

Quote Reply
LInks 1.11 - have some questions
1: Can I use cron so that at 1:00 AM EST the script will automatically build all the pages? If so, how would I go about doing that?

2: Can I have it so that "search" brings up 20 "hits" instead of 25 out of whatever? If so, how would I do that?

Thanks,
Mike
Quote Reply
Re: LInks 1.11 - have some questions In reply to
Second question first:

Code:
0 1 * * * /path/to/build_links.sh
- - - - - -------------------------------
| | | | | |_ command to execute
| | | | |_________ day of week
| | | |___________ month of year
| | |_____________ day of month
| |_______________ hour of day
|_________________ minute of hour

As written, the event will run at 1 a.m. each day. The asterisks (*) indicate null (no setting).

3. Once that file is uploaded in your root directory, issue the command:

crontab mycron.txt

If all goes well, that will load the event into the cron table. You can ensure it is there by issuing the command:

crontab -l

If the event is loaded, it will list. If it does not list, then you will need to contact your system admin for instructions on how to load a cron event on your system.

If it loaded, you are all set to go. It should run at the scheduled times.

I hope this helps.

[This message has been edited by Bobsie (edited May 02, 1999).]
Quote Reply
Re: LInks 1.11 - have some questions In reply to
Thank you VERY much for the detailed reply. I've never recieved an answer that was so thorough. Everything went through GREAT!

Thanks,
Mike

P.S. If you have a chance could you please read my other post in this same section and reply to it.
Quote Reply
Re: LInks 1.11 - have some questions In reply to
Some things I answer, some I don't. I avoid sort questions since I am really not sure what is going on with that routine. I haven't studied it enough yet.