redirect stdout/stderr on cron command
This commit is contained in:
parent
e4b6a143c7
commit
7ecb337405
@ -559,6 +559,8 @@ class Notifier {
|
|||||||
|
|
||||||
foreach($dhubs as $hub) {
|
foreach($dhubs as $hub) {
|
||||||
|
|
||||||
|
logger('notifier_hub: ' . $hub['hubloc_url'],LOGGER_DEBUG);
|
||||||
|
|
||||||
if($hub['hubloc_network'] !== 'zot') {
|
if($hub['hubloc_network'] !== 'zot') {
|
||||||
$narr = [
|
$narr = [
|
||||||
'channel' => $channel,
|
'channel' => $channel,
|
||||||
|
@ -230,7 +230,7 @@ Change "/base/directory", and "/path/to/php" as appropriate for your situation.
|
|||||||
If you are using a Linux server, run "crontab -e" and add a line like the
|
If you are using a Linux server, run "crontab -e" and add a line like the
|
||||||
one shown, substituting for your unique paths and settings:
|
one shown, substituting for your unique paths and settings:
|
||||||
|
|
||||||
*/10 * * * * cd /home/myname/mywebsite; /usr/bin/php Zotlabs/Daemon/Master.php Cron
|
*/10 * * * * cd /home/myname/mywebsite; /usr/bin/php Zotlabs/Daemon/Master.php Cron > /dev/null 2>&1
|
||||||
|
|
||||||
You can generally find the location of PHP by executing "which php". If you
|
You can generally find the location of PHP by executing "which php". If you
|
||||||
have troubles with this section please contact your hosting provider for
|
have troubles with this section please contact your hosting provider for
|
||||||
|
Reference in New Issue
Block a user