You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so if php-cli is not available, the error message will be discarded...
so this should be:
echo "php binary not found. Make sure php5 or php exists in PATH." >&2
to print the message to stderr...
as a sidenote:
php notoriously prints it's error messages (like the memory/timeout errros mentioed in the documentation above) to stdout instead of stderr, so those would likely be discarded aswell...
Keywords: cron
The text was updated successfully, but these errors were encountered:
archive.sh has:
echo "php binary not found. Make sure php5 or php exists in PATH."
the documentation suggests:
MAILTO="youremail@example.com"
#5 * * * * www-data /path/to/piwik/misc/cron/archive.sh > /dev/null
-----------------END CRON TAB--
When an error occurs (eg. php memory error, timeout) the error messages
will be sent to youremail@example.com.
so if php-cli is not available, the error message will be discarded...
so this should be:
echo "php binary not found. Make sure php5 or php exists in PATH." >&2
to print the message to stderr...
as a sidenote:
php notoriously prints it's error messages (like the memory/timeout errros mentioed in the documentation above) to stdout instead of stderr, so those would likely be discarded aswell...
Keywords: cron
The text was updated successfully, but these errors were encountered: