From 2be75c38a7a77de881faf489a9d1d78d8bd76da4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 29 Jan 2010 19:59:03 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=20319 --- html/ops/survey_get_addrs.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 html/ops/survey_get_addrs.php diff --git a/html/ops/survey_get_addrs.php b/html/ops/survey_get_addrs.php new file mode 100755 index 0000000000..abb940dd20 --- /dev/null +++ b/html/ops/survey_get_addrs.php @@ -0,0 +1,14 @@ +#! /usr/bin/env php +"); +$db_host = parse_config($config, ""); +$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"); +?>