forked from science-ation/science-ation
switch communication from using an echo to the at command now +1 minute to exec immediately piping the output to /dev/null and redirecrting stderr as well
This commit is contained in:
parent
205d94bb12
commit
a42812ce27
@ -130,8 +130,8 @@
|
|||||||
|
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
if(!function_exists("system")) {
|
if(!function_exists("exec")) {
|
||||||
echo "<div class=\"error\">Sending requires php's system() function to be available</div>\n";
|
echo "<div class=\"error\">Sending requires php's exec() function to be available</div>\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -188,7 +188,7 @@
|
|||||||
fputs($fp,$_GET['to']."\n");
|
fputs($fp,$_GET['to']."\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
||||||
system("echo \"/usr/local/bin/php -q send_communication.php ".$_GET['reallysend']."\" | at now +1 minute");
|
exec("/usr/local/bin/php -q send_communication.php ".$_GET['reallysend']." >/dev/null 2>&1 &");
|
||||||
|
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
echo happy("Email Communication sending has started!");
|
echo happy("Email Communication sending has started!");
|
||||||
|
Loading…
Reference in New Issue
Block a user