Thursday 22 January 2004 1:16:47 am
Hi, I'm wondering how the eZP cron job scripts know which site access settings to use (first and foremost concerning which database to use). I've noticed the "-s,--siteaccess" availble when running runcronjobs.php, and I've used it successfully, but my custom made cron job doesn't seem to take the specific siteaccess into consideration. At least that's my theory since it's unable to connect to the database. Should it put something specifc into the cronjob script in order to make it fetch the settings from the specified siteaccess? BTW, here's the code
[code]
<?php
$db =& eZDB::instance();
echo mysql_error() . "\n\n";
?> [/code] And here's the result it generates when run from runcronjobs.
[result]
Running extension/affiliate/cronjobs/createreports.php
Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) [/result] Thanks in advance ! Sincerely, Eirik Johansen
Sincerely,
Eirik Alfstad Johansen
http://www.netmaking.no/
|