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:
james 2008-07-17 18:33:11 +00:00
parent 205d94bb12
commit a42812ce27

View File

@ -130,8 +130,8 @@
echo "</table>";
if(!function_exists("system")) {
echo "<div class=\"error\">Sending requires php's system() function to be available</div>\n";
if(!function_exists("exec")) {
echo "<div class=\"error\">Sending requires php's exec() function to be available</div>\n";
}
else
{
@ -188,7 +188,7 @@
fputs($fp,$_GET['to']."\n");
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 happy("Email Communication sending has started!");