Я запускал простой php-скрипт (который регистрирует время работы в текстовом файле журнала). Из браузера он работает нормально, но я использую запланированные задачи на панели plesk 10.3.1 следующим образом:
*/5 * * * * php /var/www/vhosts/eblogs.co.uk/httpdocs/frostbox/cron/crone_test.php
Он запускается сразу через пять минут, но ничего не записывает в текстовый файл и отправляет мне следующие уведомления по электронной почте:
php [-f from_encoding] [-t to_encoding] [-s string] [files...]
php -l
php -r encoding_alias
-l,--list
lists all available encodings
-r,--resolve encoding_alias
resolve encoding to its (Encode) canonical name
-f,--from from_encoding
when omitted, the current locale will be used
-t,--to to_encoding
when omitted, the current locale will be used
-s,--string string
"string" will be the input instead of STDIN or files
The following are mainly of interest to Encode hackers:
-D,--debug show debug information
-C N | -c | -p check the validity of the input
-S,--scheme scheme use the scheme for conversion
Что я должен добавить в следующей строке?
php /var/www/vhosts/eblogs.co.uk/httpdocs/frostbox/cron/crone_test.php