|
Posted by jerrygarciuh on 05/11/05 16:13
Hello,
I have a script running in the wee hours via cron job. When I access the
script via browser it works like a charm. I noticed it was not succeeding
and ran it manually from the command line and it threw a Segmentation Fault.
Googling produces a ton of information on this subject but al of specific to
certain binaries and it doesn't seem germaine to solving my problem.
Any one have any advice? Whole script is below.
TIA,
jg
<?
mysql_connect('mysql.example.com', 'example', 'example');
mysql_select_db('example');
mysql_query("DELETE FROM aniSessionLog WHERE timestamp < NOW() - 900");
$rows = mysql_affected_rows();
mail('jg@example.com', 'cleaned Intranet DB', "$rows rows deleted.");
?>
[Back to original message]
|