changed batch to at (it simply works like this)

This commit is contained in:
Nuno Miguel Reis 2013-07-29 17:22:21 +00:00
parent 493a0e7f8d
commit fec419a3da
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ if (defined('STDIN')) {
fclose($fp);
$tmp_response = exec("chmod 777 ".$_SESSION['server']['temp']['dir']."/failed_fax_emails.sh");
// note we use batch in order to execute when system load is low. Alternatively this could be replaced with AT.
$tmp_response = exec("batch -f ".$_SESSION['server']['temp']['dir']."/failed_fax_emails.sh now + 3 minutes");
$tmp_response = exec("at -f ".$_SESSION['server']['temp']['dir']."/failed_fax_emails.sh now + 3 minutes");
}
}
}