svn path=/trunk/boinc/; revision=20319

This commit is contained in:
David Anderson 2010-01-29 19:59:03 +00:00
parent f7d29f6651
commit 2be75c38a7
1 changed files with 14 additions and 0 deletions

14
html/ops/survey_get_addrs.php Executable file
View File

@ -0,0 +1,14 @@
#! /usr/bin/env php
<?php
require_once("../inc/util.inc");
$config = get_config();
$db_name = parse_config($config, "<db_name>");
$db_host = parse_config($config, "<db_host>");
$query = "select email_addr from user where expavg_credit>10 and send_email<>0";
system("mysql -h $db_host $db_name -e \"$query\" > survey_tmp");
system("tail -n +2 survey_tmp > survey_tmp2");
system("sort -R survey_tmp2 > survey_sort");
?>