Yep, I've got it working out of a cron job now.  Thanks for your help!

On 4/18/06, Mordread Wallas <mordread.wallas@gmail.com > wrote:
On 4/18/06, Richard Compton < richard.compton@gmail.com> wrote:
>
> Hi guys,
> Yes, I'm trying to querry for new events.
> I think I understand now.  Thanks for your help.  I'm going to create a cron job that continually refreshes the alert cache so when my scripts run, they are querring all the events.  I guess I'll try to use the base_maintenance.pl script that you are referring to.
>
> -Rich

Hi Richard,

Please find below an example on howto auto-update BASE contents (using
Debian GNU/Linux):

If you have php4-cli (running php from command line), you can update
your BASE content with the following cron (/etc/cron.d/update_base):

*/1 * * * * root cd /var/www/base_installation_dir/ && /usr/bin/php4
"/var/www/base_installation_dir/base_maintenance.php" > /dev/null 2>&1

Then add the following, for the "if ( $submit == "Update Alert Cache"
)" test in "base_maintenance.php" (in order to update Alerts and DNS):

  else
  {
      UpdateAlertCache($db);
      UpdateDNSCache($db);
  }

If you don't use php4-cli, you may use curl (if you don't use BASE
users management).

Best regards,
Mordread



--
Thanks,
Rich Compton